Laravel-Backpack /
CRUD
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Backpack\CRUD\app\Http\Middleware; |
||
| 4 | |||
| 5 | use Closure; |
||
| 6 | |||
| 7 | class UseBackpackAuthGuardInsteadOfDefaultAuthGuard |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Handle an incoming request. |
||
| 11 | * |
||
| 12 | * @param \Illuminate\Http\Request $request |
||
| 13 | * @param \Closure $next |
||
| 14 | * @param string|null $guard |
||
| 15 | * @return mixed |
||
| 16 | */ |
||
| 17 | public function handle($request, Closure $next, $guard = null) |
||
|
0 ignored issues
–
show
|
|||
| 18 | { |
||
| 19 | app('auth')->setDefaultDriver(config('backpack.base.guard')); |
||
| 20 | |||
| 21 | return $next($request); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.