We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class UserCrudController extends CrudController |
||
| 8 | { |
||
| 9 | public function setup() |
||
| 10 | { |
||
| 11 | $this->crud->setModel(User::class); |
||
| 12 | $this->crud->setRoute('users'); |
||
| 13 | } |
||
| 14 | |||
| 15 | protected function edit($id) |
||
|
|
|||
| 16 | { |
||
| 17 | return response('edit'); |
||
| 18 | } |
||
| 19 | |||
| 20 | protected function update($id) |
||
| 21 | { |
||
| 22 | return response('update'); |
||
| 23 | } |
||
| 24 | |||
| 25 | protected function index() |
||
| 28 | } |
||
| 29 | } |
||
| 30 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.