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\Tests\Unit\Http\Controllers;
use Backpack\CRUD\app\Http\Controllers\CrudController;
class UserCrudController extends CrudController
{
public function setup()
$this->crud->setModel(User::class);
$this->crud->setRoute('users');
}
protected function edit($id)
$id
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function edit(/** @scrutinizer ignore-unused */ $id)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return response('edit');
protected function update($id)
protected function update(/** @scrutinizer ignore-unused */ $id)
return response('update');
protected function index()
return response('index');
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.