@@ -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 | |
@@ -20,16 +20,16 @@ discard block |
||
20 | 20 | $folder = ''; |
21 | 21 | $items = array_diff(scandir($path), array('.', '..')); |
22 | 22 | |
23 | - foreach($items as $item) { |
|
23 | + foreach ($items as $item) { |
|
24 | 24 | |
25 | 25 | $folder = "$path/$item"; |
26 | 26 | |
27 | - if (! is_dir($folder)) { |
|
27 | + if (!is_dir($folder)) { |
|
28 | 28 | continue; |
29 | 29 | } |
30 | 30 | |
31 | 31 | if (is_dir($folder) && $step < $level) { |
32 | - self::scan($folder, $step+1, $level); |
|
32 | + self::scan($folder, $step + 1, $level); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | if ($step == $level) { |
@@ -8,7 +8,9 @@ |
||
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)) { |
|
12 | + return []; |
|
13 | + } |
|
12 | 14 | |
13 | 15 | self::scan($path, 1, $level); |
14 | 16 |
@@ -143,7 +143,7 @@ |
||
143 | 143 | |
144 | 144 | public function load(string $filename) : ?string |
145 | 145 | { |
146 | - if (! $this->exists($filename)) { |
|
146 | + if (!$this->exists($filename)) { |
|
147 | 147 | return null; |
148 | 148 | } |
149 | 149 |