Conditions | 4 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | #[Override] |
||
21 | public function matchingPattern(string $pattern): array |
||
22 | { |
||
23 | if ($pattern === '') { |
||
24 | return []; |
||
25 | } |
||
26 | |||
27 | if (isset(self::$cache[$pattern])) { |
||
28 | return self::$cache[$pattern]; |
||
29 | } |
||
30 | |||
31 | $this->ensureGlobBraceIsDefined(); |
||
32 | |||
33 | return self::$cache[$pattern] = glob($pattern, GLOB_BRACE) ?: []; |
||
34 | } |
||
48 |