| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.3332 |
| Changes | 0 | ||
| 1 | <?php |
||
| 84 | 1 | public function update(User $user, Association $association) |
|
| 85 | { |
||
| 86 | 1 | if ($user->isFederationPresident()) { |
|
| 87 | return $association->belongsToFederationPresident($user); |
||
| 88 | } |
||
| 89 | |||
| 90 | 1 | if ($user->isAssociationPresident()) { |
|
| 91 | 1 | return $association->belongsToAssociationPresident($user); |
|
| 92 | |||
| 93 | } |
||
| 94 | return false; |
||
| 95 | } |
||
| 99 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.