| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 21 | public function isGranted(RouteContextInterface $routeContext) |
|
| 49 | { |
||
| 50 | 21 | $tests = $this->testLoader->load($routeContext); |
|
| 51 | |||
| 52 | 21 | foreach ($tests as $test) { |
|
| 53 | 16 | if (!$this->authorizationChecker->isGranted($test, $routeContext)) { |
|
| 54 | 10 | return false; |
|
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | 11 | return true; |
|
| 59 | } |
||
| 61 |