Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | 13 | private static function globRecursive(string $pattern): array |
|
33 | { |
||
34 | 13 | $files = glob($pattern); |
|
35 | |||
36 | 13 | foreach (glob(dirname($pattern) . '/*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir) { |
|
37 | 9 | $files = array_merge($files, self::globRecursive($dir . '/' . basename($pattern))); |
|
|
|||
38 | } |
||
39 | |||
40 | 13 | return $files; |
|
41 | } |
||
43 |