| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class DemoController |
||
| 19 | { |
||
| 20 | public function entity(User $user) |
||
| 21 | { |
||
| 22 | return $user->getName(); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function entity2(User $user, Role $role) |
||
| 26 | { |
||
| 27 | return 'ok'; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @Guarded() |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function guardedButNoName() |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @Guarded("do") |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function do() |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.