Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
12 | 11 | public function before($user, $ability) |
|
1 ignored issue
–
show
|
|||
13 | { |
||
14 | 11 | if ($user->user_role->name == 'admin') { |
|
15 | 1 | $userText = '{id='.$user->id.'}'; |
|
16 | 1 | Log::notice('User '.$userText.' has bypassed policy as an Admin'); |
|
17 | 1 | return true; |
|
18 | } |
||
21 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.