aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins/test/test.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-03-07 21:53:53 +0100
committerGitHub <noreply@github.com>2018-03-07 21:53:53 +0100
commit39ee93925b66b527c4386647001fadc898c52a2c (patch)
treeb8e0548c6ba1716b6c3f2bde9f81e8f4d913eeb2 /tests/plugins/test/test.php
parenta58a8856a88cefe22027d419fac2e5664fc9ba61 (diff)
parentd2d4f993e1e76bc68b65c48cb18476c404c97a41 (diff)
downloadShaarli-39ee93925b66b527c4386647001fadc898c52a2c.tar.gz
Shaarli-39ee93925b66b527c4386647001fadc898c52a2c.tar.zst
Shaarli-39ee93925b66b527c4386647001fadc898c52a2c.zip
Merge pull request #1097 from ArthurHoaro/fix/psr-elseif
PSR: use elseif instead of else if
Diffstat (limited to 'tests/plugins/test/test.php')
-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];