Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | 4 | public function handleList(Request $request) |
|
|
|||
21 | { |
||
22 | 4 | $this->beforeInit(); |
|
23 | 4 | $this->init(); |
|
24 | 4 | $this->bound(); |
|
25 | |||
26 | 4 | if (!$this->can('list')) { |
|
27 | 2 | throw UnauthorizedException::forPermissions(['list']); |
|
28 | } |
||
29 | |||
30 | 2 | return view($this->viewCrudList, [ |
|
31 | 2 | 'crud' => $this->crud(), |
|
32 | 2 | 'items' => $this->crud()->repo()->get(), |
|
33 | 2 | 'viewsAbove' => $this->getListViewsAbove(), |
|
34 | 2 | 'viewsBelow' => $this->getListViewsBelow(), |
|
35 | ]); |
||
64 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.