| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 57 | public function changeStage(User $user) |
||
| 58 | { |
||
| 59 | if ($user->can('update any recruitment')) { |
||
| 60 | return true; |
||
| 61 | } |
||
| 62 | |||
| 63 | $candidate = Candidate::findOrFail(request()->get('candidate_id')); |
||
| 64 | if ($user->grantedRecruitments->contains($candidate->recruitment->id)) { |
||
| 65 | return true; |
||
| 66 | } |
||
| 67 | |||
| 68 | return false; |
||
| 69 | } |
||
| 71 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.