]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/FileUtils.php
namespacing: \Shaarli\Exceptions\IOException
[github/shaarli/Shaarli.git] / application / FileUtils.php
index 918cb83b3c66cbc5aee40a0c704f1010aa339c1e..ba409821c03c0b235e0b9ea86151c6bbf30bc911 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use Shaarli\Exceptions\IOException;
+
 require_once 'exceptions/IOException.php';
 
 /**
@@ -37,7 +39,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));
         }