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 | 3 | public static function matchUri(string $uri, string $resourcePath, string $operationPath, &$matches = null): bool |
|
22 | { |
||
23 | 3 | $uri = self::normalizeUri($uri); |
|
24 | 3 | $path = self::normalizeUri($resourcePath . $operationPath); |
|
25 | |||
26 | 3 | return (bool) preg_match("#^{$path}$#", $uri, $matches); |
|
27 | } |
||
34 |