Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
70 | 4 | public function edit(User $user, Association $association) |
|
71 | { |
||
72 | |||
73 | 4 | if ($user->isFederationPresident()) { |
|
74 | 1 | return $association->belongsToFederationPresident($user); |
|
75 | } |
||
76 | |||
77 | 3 | if ($user->isAssociationPresident()) { |
|
78 | 2 | return $association->belongsToAssociationPresident($user); |
|
79 | |||
80 | } |
||
81 | 1 | return false; |
|
82 | } |
||
99 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.