Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | protected function voteOnAttribute(string $attribute, $routable, TokenInterface $token): bool |
||
40 | { |
||
41 | if (!$this->securityStr) { |
||
42 | return true; |
||
43 | } |
||
44 | |||
45 | if ($routable->getRoute()) { |
||
46 | return true; |
||
47 | } |
||
48 | |||
49 | return $this->resourceAccessChecker->isGranted(\get_class($routable), $this->securityStr); |
||
50 | } |
||
52 |