Total Complexity | 8 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class AdConfigurationPolicy |
||
8 | { |
||
9 | use HandlesAuthorization; |
||
10 | |||
11 | public function viewAny($user) |
||
|
|||
12 | { |
||
13 | return true; |
||
14 | } |
||
15 | |||
16 | public function view($user, $model) |
||
19 | } |
||
20 | |||
21 | public function create($user) |
||
24 | } |
||
25 | |||
26 | public function update($user, $model) |
||
29 | } |
||
30 | |||
31 | public function replicate($user) |
||
34 | } |
||
35 | |||
36 | public function delete($user) |
||
37 | { |
||
38 | return config('nova-ad-director.creatable'); |
||
39 | } |
||
40 | |||
41 | public function forceDelete($user) |
||
44 | } |
||
45 | |||
46 | public function restore($user) |
||
51 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.