| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 60 | 1 | protected function isFileMatch(string $targetPath, string $rawPath): bool |
|
| 61 | { |
||
| 62 | 1 | $pathRegex = Util\Path::datePlaceholdersToRegex($rawPath); |
|
| 63 | 1 | $pathRegex .= $pathRegex ? '/' : ''; |
|
| 64 | 1 | $fileRegex = Util\Path::datePlaceholdersToRegex($this->target->getFilenameRaw()); |
|
| 65 | 1 | return preg_match('#'.$pathRegex . $fileRegex . '$#i', $targetPath); |
|
| 66 | } |
||
| 67 | |||
| 86 |