diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-11-10 10:46:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 10:46:04 +0100 |
commit | 302662797cb5e8ac6579a99297ceae301f7927a6 (patch) | |
tree | 67f493a1cc6d3691742946f1d7e512bffe41e02f /application/helper/FileUtils.php | |
parent | c94c32d1a3e86a479cb2582eadc668a5bb476fc6 (diff) | |
parent | 2f4df753041088d788d1923692a7d530167a6840 (diff) | |
download | Shaarli-302662797cb5e8ac6579a99297ceae301f7927a6.tar.gz Shaarli-302662797cb5e8ac6579a99297ceae301f7927a6.tar.zst Shaarli-302662797cb5e8ac6579a99297ceae301f7927a6.zip |
Merge pull request #1635 from ArthurHoaro/feature/phpcs
Diffstat (limited to 'application/helper/FileUtils.php')
-rw-r--r-- | application/helper/FileUtils.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/helper/FileUtils.php b/application/helper/FileUtils.php index 2eac0793..e8a2168c 100644 --- a/application/helper/FileUtils.php +++ b/application/helper/FileUtils.php | |||
@@ -105,7 +105,7 @@ class FileUtils | |||
105 | } | 105 | } |
106 | 106 | ||
107 | foreach (new \DirectoryIterator($path) as $file) { | 107 | foreach (new \DirectoryIterator($path) as $file) { |
108 | if($file->isDot()) { | 108 | if ($file->isDot()) { |
109 | continue; | 109 | continue; |
110 | } | 110 | } |
111 | 111 | ||
@@ -116,7 +116,7 @@ class FileUtils | |||
116 | 116 | ||
117 | if ($file->isFile()) { | 117 | if ($file->isFile()) { |
118 | unlink($file->getPathname()); | 118 | unlink($file->getPathname()); |
119 | } elseif($file->isDir()) { | 119 | } elseif ($file->isDir()) { |
120 | $skipped = static::clearFolder($file->getRealPath(), true, $exclude) || $skipped; | 120 | $skipped = static::clearFolder($file->getRealPath(), true, $exclude) || $skipped; |
121 | } | 121 | } |
122 | } | 122 | } |