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