| Conditions | 4 |
| Paths | 6 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 10 | public function handle(Request $request, Closure $next, string ...$guards): Response |
|
| 19 | { |
||
| 20 | 10 | $guards = empty($guards) ? [null] : $guards; |
|
| 21 | |||
| 22 | 10 | foreach ($guards as $guard) { |
|
| 23 | 10 | if (Auth::guard($guard)->check()) { |
|
| 24 | 1 | return redirect(RouteServiceProvider::HOME); |
|
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | 10 | return $next($request); |
|
| 29 | } |
||
| 31 |