@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | $paths = $this->collectPathsRecursively($rootPath, $pattern); |
16 | 16 | } |
17 | 17 | |
18 | - return array_filter($paths, function ($item) { |
|
18 | + return array_filter($paths, function($item) { |
|
19 | 19 | return is_file($item); |
20 | 20 | }); |
21 | 21 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $files = array(); |
28 | 28 | |
29 | 29 | foreach ($iterator as $info) { |
30 | - if($info->isDir()) { |
|
30 | + if ($info->isDir()) { |
|
31 | 31 | $files = [...$files, ...$this->collectPathsRecursively($info->getRealPath(), $pattern)]; |
32 | 32 | continue; |
33 | 33 | } |