Completed
Push — master ( 0a8b12...712413 )
by Amin
02:49
created
src/FileManager.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,7 +131,9 @@  discard block
 block discarded – undo
131 131
     public static function moveDir(string $source, string $destination)
132 132
     {
133 133
         foreach (scandir($source) as $file) {
134
-            if (in_array($file, [".", ".."])) continue;
134
+            if (in_array($file, [".", ".."])) {
135
+                continue;
136
+            }
135 137
             if (copy($source . $file, $destination . $file)) {
136 138
                 unlink($source . $file);
137 139
             }
@@ -153,7 +155,9 @@  discard block
 block discarded – undo
153 155
         }
154 156
 
155 157
         foreach (scandir($dir) as $item) {
156
-            if (in_array($item, [".", ".."])) continue;
158
+            if (in_array($item, [".", ".."])) {
159
+                continue;
160
+            }
157 161
             if (!static::deleteDirectory($dir . DIRECTORY_SEPARATOR . $item)) {
158 162
                 return false;
159 163
             }
Please login to merge, or discard this patch.