Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
13 | 13 | public static function getPathToYamlFiles(array $patterns): array |
|
14 | { |
||
15 | 13 | $pathToFiles = [[]]; |
|
16 | 13 | foreach ($patterns as $pattern) { |
|
17 | 13 | $pathToFiles[] = self::globRecursive($pattern); |
|
18 | } |
||
19 | |||
20 | 13 | $pathToFiles = array_merge(...$pathToFiles); |
|
21 | 13 | $pathToFiles = str_replace('\\', '/', $pathToFiles); |
|
22 | |||
23 | 13 | return array_unique($pathToFiles); |
|
24 | } |
||
43 |