for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace Backpack\CRUD\app\Http\Middleware;
use Closure;
class UseBackpackAuthGuardInsteadOfDefaultAuthGuard
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
* @return mixed
*/
public function handle($request, Closure $next, $guard = null)
$guard
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
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.
app('auth')->setDefaultDriver(config('backpack.base.guard'));
return $next($request);
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.