| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 6 | public static function matchUri(string $uri, string $resourcePath, string $operationPath, &$matches = null): bool |
|
| 22 | { |
||
| 23 | 6 | $uri = self::normalizeUri($uri); |
|
| 24 | 6 | $path = self::normalizeUri($resourcePath . $operationPath); |
|
| 25 | |||
| 26 | 6 | return (bool) preg_match("#^{$path}$#", $uri, $matches); |
|
| 27 | } |
||
| 34 |