]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Url.php
PSR: use elseif instead of else if
[github/shaarli/Shaarli.git] / application / Url.php
index 21c17eccaa25644c72134795570cff816e2dad8d..6b9870f0c1bb468ebafd67e2d71123411f598a0c 100644 (file)
@@ -81,7 +81,7 @@ function whitelist_protocols($url, $protocols)
     // Protocol not allowed: we remove it and replace it with http
     if ($protocol === 1 && ! in_array($match[1], $protocols)) {
         $url = str_replace($match[0], 'http://', $url);
-    } else if ($protocol !== 1) {
+    } elseif ($protocol !== 1) {
         $url = 'http://' . $url;
     }
     return $url;