@@ -42,7 +42,9 @@ |
||
42 | 42 | if (is_dir($dir)) { |
43 | 43 | $size = 0; |
44 | 44 | foreach (scandir($dir) as $file) { |
45 | - if (in_array($file, [".", ".."])) continue; |
|
45 | + if (in_array($file, [".", ".."])) { |
|
46 | + continue; |
|
47 | + } |
|
46 | 48 | $filename = $dir . DIRECTORY_SEPARATOR . $file; |
47 | 49 | $size += is_file($filename) ? filesize($filename) : static::directorySize($filename); |
48 | 50 | } |