Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 1 | public function supports(string $routeName): bool |
|
28 | { |
||
29 | 1 | if (!key_exists($routeName, $this->configuration)) { |
|
30 | 1 | return false; |
|
31 | } |
||
32 | |||
33 | 1 | if (!key_exists('handlers', $this->configuration[$routeName])) { |
|
34 | 1 | return false; |
|
35 | } |
||
36 | |||
37 | 1 | return key_exists($this->getName(), $this->configuration[$routeName]['handlers']); |
|
38 | } |
||
54 |