aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-02-28 22:34:40 +0100
committerArthurHoaro <arthur@hoa.ro>2018-02-28 22:34:40 +0100
commitd2d4f993e1e76bc68b65c48cb18476c404c97a41 (patch)
tree833cf0646e7e7c195a8da9d5fee2812cd06f8a6d /tests/plugins
parentb70436373b488ce9cd8b0dc287d058b5ca206347 (diff)
downloadShaarli-d2d4f993e1e76bc68b65c48cb18476c404c97a41.tar.gz
Shaarli-d2d4f993e1e76bc68b65c48cb18476c404c97a41.tar.zst
Shaarli-d2d4f993e1e76bc68b65c48cb18476c404c97a41.zip
PSR: use elseif instead of else if
See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
Diffstat (limited to 'tests/plugins')
-rw-r--r--tests/plugins/test/test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/plugins/test/test.php b/tests/plugins/test/test.php
index 3d750c90..2aaf5122 100644
--- a/tests/plugins/test/test.php
+++ b/tests/plugins/test/test.php
@@ -11,7 +11,7 @@ function hook_test_random($data)
11{ 11{
12 if (isset($data['_PAGE_']) && $data['_PAGE_'] == 'test') { 12 if (isset($data['_PAGE_']) && $data['_PAGE_'] == 'test') {
13 $data[1] = 'page test'; 13 $data[1] = 'page test';
14 } else if (isset($data['_LOGGEDIN_']) && $data['_LOGGEDIN_'] === true) { 14 } elseif (isset($data['_LOGGEDIN_']) && $data['_LOGGEDIN_'] === true) {
15 $data[1] = 'loggedin'; 15 $data[1] = 'loggedin';
16 } else { 16 } else {
17 $data[1] = $data[0]; 17 $data[1] = $data[0];