diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-03-07 21:53:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 21:53:53 +0100 |
commit | 39ee93925b66b527c4386647001fadc898c52a2c (patch) | |
tree | b8e0548c6ba1716b6c3f2bde9f81e8f4d913eeb2 /application/LinkFilter.php | |
parent | a58a8856a88cefe22027d419fac2e5664fc9ba61 (diff) | |
parent | d2d4f993e1e76bc68b65c48cb18476c404c97a41 (diff) | |
download | Shaarli-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 'application/LinkFilter.php')
-rw-r--r-- | application/LinkFilter.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/application/LinkFilter.php b/application/LinkFilter.php index 12376e27..e52239b8 100644 --- a/application/LinkFilter.php +++ b/application/LinkFilter.php | |||
@@ -117,7 +117,7 @@ class LinkFilter | |||
117 | foreach ($this->links as $key => $value) { | 117 | foreach ($this->links as $key => $value) { |
118 | if ($value['private'] && $visibility === 'private') { | 118 | if ($value['private'] && $visibility === 'private') { |
119 | $out[$key] = $value; | 119 | $out[$key] = $value; |
120 | } else if (! $value['private'] && $visibility === 'public') { | 120 | } elseif (! $value['private'] && $visibility === 'public') { |
121 | $out[$key] = $value; | 121 | $out[$key] = $value; |
122 | } | 122 | } |
123 | } | 123 | } |
@@ -210,7 +210,7 @@ class LinkFilter | |||
210 | if ($visibility !== 'all') { | 210 | if ($visibility !== 'all') { |
211 | if (! $link['private'] && $visibility === 'private') { | 211 | if (! $link['private'] && $visibility === 'private') { |
212 | continue; | 212 | continue; |
213 | } else if ($link['private'] && $visibility === 'public') { | 213 | } elseif ($link['private'] && $visibility === 'public') { |
214 | continue; | 214 | continue; |
215 | } | 215 | } |
216 | } | 216 | } |
@@ -337,7 +337,7 @@ class LinkFilter | |||
337 | if ($visibility !== 'all') { | 337 | if ($visibility !== 'all') { |
338 | if (! $link['private'] && $visibility === 'private') { | 338 | if (! $link['private'] && $visibility === 'private') { |
339 | continue; | 339 | continue; |
340 | } else if ($link['private'] && $visibility === 'public') { | 340 | } elseif ($link['private'] && $visibility === 'public') { |
341 | continue; | 341 | continue; |
342 | } | 342 | } |
343 | } | 343 | } |
@@ -380,7 +380,7 @@ class LinkFilter | |||
380 | if ($visibility !== 'all') { | 380 | if ($visibility !== 'all') { |
381 | if (! $link['private'] && $visibility === 'private') { | 381 | if (! $link['private'] && $visibility === 'private') { |
382 | continue; | 382 | continue; |
383 | } else if ($link['private'] && $visibility === 'public') { | 383 | } elseif ($link['private'] && $visibility === 'public') { |
384 | continue; | 384 | continue; |
385 | } | 385 | } |
386 | } | 386 | } |