@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | static public function read(string $path, int $level) : array |
10 | 10 | { |
11 | - if (! is_dir($path)) return []; |
|
11 | + if (!is_dir($path)) return []; |
|
12 | 12 | |
13 | 13 | self::scan($path, 1, $level); |
14 | 14 | |
@@ -31,18 +31,18 @@ discard block |
||
31 | 31 | |
32 | 32 | static private function scan(string $path, int $step, int $level) : void |
33 | 33 | { |
34 | - $items = array_diff(scandir($path), array('.', '..')); |
|
34 | + $items = array_diff(scandir($path), array('.', '..')); |
|
35 | 35 | |
36 | - foreach($items as $item) { |
|
36 | + foreach ($items as $item) { |
|
37 | 37 | |
38 | 38 | $folder = "$path/$item"; |
39 | 39 | |
40 | - if (! is_dir($folder)) { |
|
40 | + if (!is_dir($folder)) { |
|
41 | 41 | continue; |
42 | 42 | } |
43 | 43 | |
44 | 44 | if (is_dir($folder) && $step < $level) { |
45 | - self::scan($folder, $step+1, $level); |
|
45 | + self::scan($folder, $step + 1, $level); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | if ($step == $level) { |