diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-02-28 22:34:40 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-02-28 22:34:40 +0100 |
commit | d2d4f993e1e76bc68b65c48cb18476c404c97a41 (patch) | |
tree | 833cf0646e7e7c195a8da9d5fee2812cd06f8a6d /application/NetscapeBookmarkUtils.php | |
parent | b70436373b488ce9cd8b0dc287d058b5ca206347 (diff) | |
download | Shaarli-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 'application/NetscapeBookmarkUtils.php')
-rw-r--r-- | application/NetscapeBookmarkUtils.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/NetscapeBookmarkUtils.php b/application/NetscapeBookmarkUtils.php index 2aa2da3b..b4d16d00 100644 --- a/application/NetscapeBookmarkUtils.php +++ b/application/NetscapeBookmarkUtils.php | |||
@@ -154,10 +154,10 @@ class NetscapeBookmarkUtils | |||
154 | if (empty($post['privacy']) || $post['privacy'] == 'default') { | 154 | if (empty($post['privacy']) || $post['privacy'] == 'default') { |
155 | // use value from the imported file | 155 | // use value from the imported file |
156 | $private = $bkm['pub'] == '1' ? 0 : 1; | 156 | $private = $bkm['pub'] == '1' ? 0 : 1; |
157 | } else if ($post['privacy'] == 'private') { | 157 | } elseif ($post['privacy'] == 'private') { |
158 | // all imported links are private | 158 | // all imported links are private |
159 | $private = 1; | 159 | $private = 1; |
160 | } else if ($post['privacy'] == 'public') { | 160 | } elseif ($post['privacy'] == 'public') { |
161 | // all imported links are public | 161 | // all imported links are public |
162 | $private = 0; | 162 | $private = 0; |
163 | } | 163 | } |