Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Issues (906)

Branch: main

UseBackpackAuthGuardInsteadOfDefaultAuthGuard.php (1 issue)

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
The parameter $guard is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

17
    public function handle($request, Closure $next, /** @scrutinizer ignore-unused */ $guard = null)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
    {
19
        app('auth')->setDefaultDriver(config('backpack.base.guard'));
20
21
        return $next($request);
22
    }
23
}
24