Total Complexity | 4 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait ListHandlerTrait |
||
10 | { |
||
11 | protected $viewCrudList = 'jarboe::crud.list'; |
||
12 | |||
13 | /** |
||
14 | * Show table list page. |
||
15 | * |
||
16 | * @param Request $request |
||
17 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
18 | * @throws UnauthorizedException |
||
19 | */ |
||
20 | 4 | public function handleList(Request $request) |
|
35 | ]); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Get array of view's objects, that should be rendered above content of `list` view. |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | 3 | protected function getListViewsAbove(): array |
|
44 | { |
||
45 | 3 | return []; |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * Get array of view's objects, that should be rendered below content of `list` view. |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | 3 | protected function getListViewsBelow(): array |
|
56 | } |
||
57 | |||
58 | abstract protected function beforeInit(); |
||
59 | abstract protected function init(); |
||
60 | abstract protected function bound(); |
||
61 | abstract protected function crud(): CRUD; |
||
62 | abstract protected function can($action): bool; |
||
63 | } |
||
64 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.