| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 4 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 25 | public function matchingPattern(string $pattern): array |
|
| 19 | { |
||
| 20 | if ($pattern === '') { |
||
| 21 | 30 | return []; |
|
| 22 | } |
||
| 23 | 30 | ||
| 24 | if (isset(self::$cache[$pattern])) { |
||
| 25 | return self::$cache[$pattern]; |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->ensureGlobBraceIsDefined(); |
||
| 29 | |||
| 30 | return self::$cache[$pattern] = glob($pattern, GLOB_BRACE) ?: []; |
||
| 31 | 30 | } |
|
| 45 |