Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
55 | 7 | private function isValid(string $key, $callable): void |
|
56 | { |
||
57 | 7 | if (\array_key_exists($key, $this->resolvers)) { |
|
58 | 1 | throw RouteArgsResolverException::keyAlreadyExist($key); |
|
59 | } |
||
60 | |||
61 | 7 | if (!\is_callable($callable)) { |
|
62 | 1 | throw RouteArgsResolverException::isNotCallable($key); |
|
63 | } |
||
66 |