aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/FileUtils.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-02-28 22:34:40 +0100
committerArthurHoaro <arthur@hoa.ro>2018-02-28 22:34:40 +0100
commitd2d4f993e1e76bc68b65c48cb18476c404c97a41 (patch)
tree833cf0646e7e7c195a8da9d5fee2812cd06f8a6d /application/FileUtils.php
parentb70436373b488ce9cd8b0dc287d058b5ca206347 (diff)
downloadShaarli-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/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 }