| Total Complexity | 4 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 1 | Features | 2 |
| 1 | <?php |
||
| 19 | class Helper |
||
| 20 | { |
||
| 21 | 19 | public function authenticated(?string $guard = null): ?Authorizable |
|
| 22 | { |
||
| 23 | 19 | $authenticated = auth($guard)->user(); |
|
| 24 | 19 | return $authenticated instanceof Authorizable ? $authenticated : null; |
|
| 25 | } |
||
| 26 | |||
| 27 | 1 | public function authorizer(): Authorizer |
|
| 30 | } |
||
| 31 | |||
| 32 | 42 | public function except(Collection $grantableCollection, array $exceptNames): Collection |
|
| 39 |