| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 15 | public function isGranted(TestInterface $test, RouteContextInterface $routeContext) |
|
| 39 | { |
||
| 40 | 15 | foreach ($this->checkers as $checker) { |
|
| 41 | 15 | if ($checker->supports($test)) { |
|
| 42 | 14 | return $checker->isGranted($test, $routeContext); |
|
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | 1 | throw new RuntimeException(sprintf('No authorization checker exists for test instance of "%s".', get_class($test))); |
|
| 47 | } |
||
| 57 |