]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/FileUtils.php
PSR: use elseif instead of else if
[github/shaarli/Shaarli.git] / application / FileUtils.php
index 918cb83b3c66cbc5aee40a0c704f1010aa339c1e..b89ea12bcc26cb7e67b09eaa60f11abf9b0c552a 100644 (file)
@@ -37,7 +37,7 @@ class FileUtils
         if (is_file($file) && !is_writeable($file)) {
             // The datastore exists but is not writeable
             throw new IOException($file);
-        } else if (!is_file($file) && !is_writeable(dirname($file))) {
+        } elseif (!is_file($file) && !is_writeable(dirname($file))) {
             // The datastore does not exist and its parent directory is not writeable
             throw new IOException(dirname($file));
         }