diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-11-07 16:13:08 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2015-11-07 16:13:08 +0100 |
commit | abb3ff38f5aea6231f981fd2e6d417f09de7a6e6 (patch) | |
tree | d16f2ae2416412fe0ad05a7122c75237db2e1e86 /plugins | |
parent | 14c8efbe312696bde56466af114385b70c159bc1 (diff) | |
download | Shaarli-abb3ff38f5aea6231f981fd2e6d417f09de7a6e6.tar.gz Shaarli-abb3ff38f5aea6231f981fd2e6d417f09de7a6e6.tar.zst Shaarli-abb3ff38f5aea6231f981fd2e6d417f09de7a6e6.zip |
Add unit tests for the QRCode plugin
+ coding style
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/qrcode/qrcode.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/qrcode/qrcode.php b/plugins/qrcode/qrcode.php index 5db40929..1080c964 100644 --- a/plugins/qrcode/qrcode.php +++ b/plugins/qrcode/qrcode.php | |||
@@ -1,11 +1,15 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | /** | |
3 | // TODO: Can't be tested in localhost | 3 | * Plugin qrcode |
4 | * Add QRCode containing URL for each links. | ||
5 | * Display a QRCode icon in link list. | ||
6 | */ | ||
4 | 7 | ||
5 | /** | 8 | /** |
6 | * Add qrcode icon to link_plugin when rendering linklist. | 9 | * Add qrcode icon to link_plugin when rendering linklist. |
7 | * | 10 | * |
8 | * @param $data - linklist data. | 11 | * @param array $data - linklist data. |
12 | * | ||
9 | * @return mixed - linklist data with qrcode plugin. | 13 | * @return mixed - linklist data with qrcode plugin. |
10 | */ | 14 | */ |
11 | function hook_qrcode_render_linklist($data) | 15 | function hook_qrcode_render_linklist($data) |
@@ -24,6 +28,7 @@ function hook_qrcode_render_linklist($data) | |||
24 | * When linklist is displayed, include qrcode JS files. | 28 | * When linklist is displayed, include qrcode JS files. |
25 | * | 29 | * |
26 | * @param array $data - footer data. | 30 | * @param array $data - footer data. |
31 | * | ||
27 | * @return mixed - footer data with qrcode JS files added. | 32 | * @return mixed - footer data with qrcode JS files added. |
28 | */ | 33 | */ |
29 | function hook_qrcode_render_footer($data) | 34 | function hook_qrcode_render_footer($data) |
@@ -33,4 +38,4 @@ function hook_qrcode_render_footer($data) | |||
33 | } | 38 | } |
34 | 39 | ||
35 | return $data; | 40 | return $data; |
36 | } \ No newline at end of file | 41 | } |