| Conditions | 4 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function handle(Request $request, Closure $next, ?string $redirectToRoute = null): Response |
||
|
|
|||
| 20 | { |
||
| 21 | if ( |
||
| 22 | !$request->user('admin') |
||
| 23 | || ($request->user('admin') instanceof MustVerifyEmail |
||
| 24 | && !$request->user('admin')->hasVerifiedEmail()) |
||
| 25 | ) { |
||
| 26 | return response()->json(['message' => 'Your email address is not verified.'], 409); |
||
| 27 | } |
||
| 28 | |||
| 29 | return $next($request); |
||
| 30 | } |
||
| 32 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.