aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/FileUtils.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-03-07 21:53:53 +0100
committerGitHub <noreply@github.com>2018-03-07 21:53:53 +0100
commit39ee93925b66b527c4386647001fadc898c52a2c (patch)
treeb8e0548c6ba1716b6c3f2bde9f81e8f4d913eeb2 /application/FileUtils.php
parenta58a8856a88cefe22027d419fac2e5664fc9ba61 (diff)
parentd2d4f993e1e76bc68b65c48cb18476c404c97a41 (diff)
downloadShaarli-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/FileUtils.php')
-rw-r--r--application/FileUtils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/FileUtils.php b/application/FileUtils.php
index 918cb83b..b89ea12b 100644
--- a/application/FileUtils.php
+++ b/application/FileUtils.php
@@ -37,7 +37,7 @@ class FileUtils
37 if (is_file($file) && !is_writeable($file)) { 37 if (is_file($file) && !is_writeable($file)) {
38 // The datastore exists but is not writeable 38 // The datastore exists but is not writeable
39 throw new IOException($file); 39 throw new IOException($file);
40 } else if (!is_file($file) && !is_writeable(dirname($file))) { 40 } elseif (!is_file($file) && !is_writeable(dirname($file))) {
41 // The datastore does not exist and its parent directory is not writeable 41 // The datastore does not exist and its parent directory is not writeable
42 throw new IOException(dirname($file)); 42 throw new IOException(dirname($file));
43 } 43 }