| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | protected function denyAccessUnlessGrantedOneOff(mixed $attribute, mixed $subject = null, string $message = 'Access Denied.'): void |
||
| 29 | { |
||
| 30 | if (is_array($attribute)) { |
||
| 31 | foreach ($attribute as $role) { |
||
| 32 | if ($this->isGranted($role, $subject)) { |
||
| 33 | return; |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | throw $this->createAccessDeniedException($message); |
||
| 38 | } |
||
| 39 | parent::denyAccessUnlessGranted($attribute, $subject, $message); |
||
| 40 | } |
||
| 42 |