Total Complexity | 8 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | trait Hooks |
||
6 | { |
||
7 | public function hookBeforeDelete($id) |
||
|
|||
8 | { |
||
9 | } |
||
10 | |||
11 | public function hookAfterDelete($id) |
||
12 | { |
||
13 | } |
||
14 | |||
15 | public function hookBeforeEdit(&$arr, $id) |
||
16 | { |
||
17 | } |
||
18 | |||
19 | public function hookAfterEdit($id) |
||
20 | { |
||
21 | } |
||
22 | |||
23 | public function hookAfterAdd($id) |
||
24 | { |
||
25 | } |
||
26 | |||
27 | public function hookBeforeAdd(&$arr) |
||
28 | { |
||
29 | } |
||
30 | |||
31 | public function hookQueryIndex(&$query) |
||
33 | } |
||
34 | |||
35 | public function hookRowIndex($index, &$value) |
||
37 | } |
||
38 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.