Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | trait HistoryHandlerTrait |
||
11 | { |
||
12 | protected $historyCrudHistory = 'jarboe::crud.history'; |
||
13 | |||
14 | /** |
||
15 | * Show history page. |
||
16 | * |
||
17 | * @param Request $request |
||
18 | * @param $id |
||
19 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
20 | * @throws PermissionDenied |
||
21 | * @throws UnauthorizedException |
||
22 | */ |
||
23 | 4 | public function handleHistory(Request $request, $id) |
|
42 | ]); |
||
43 | } |
||
44 | |||
45 | abstract protected function beforeInit(); |
||
46 | abstract protected function init(); |
||
47 | abstract protected function bound(); |
||
48 | abstract protected function crud(): CRUD; |
||
49 | abstract protected function can($action): bool; |
||
50 | } |
||
51 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.