| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class UriMatcher |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Returns TRUE if provided paths combination matches request URI |
||
| 15 | * |
||
| 16 | * @param string $uri '/clients/1/address' |
||
| 17 | * @param string $resourcePath '/clients/<REGEX>' |
||
| 18 | * @param string $operationPath '/address' |
||
| 19 | * @param mixed[]|null $matches |
||
| 20 | */ |
||
| 21 | 6 | public static function matchUri(string $uri, string $resourcePath, string $operationPath, &$matches = null): bool |
|
| 27 | } |
||
| 28 | |||
| 29 | 6 | private static function normalizeUri(string $uri): string |
|
| 34 |