| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public static function moveCandidate($candidate, $recruitmentId) |
||
| 31 | { |
||
| 32 | $prevRecruitmentId = $candidate->recruitment_id; |
||
| 33 | $candidate->recruitment_id = $recruitmentId; |
||
| 34 | $candidate->stage_id = StageHelper::getFirstStage($recruitmentId)->id; |
||
| 35 | $candidate->save(); |
||
| 36 | |||
| 37 | event(new CandidateMoved($candidate, $prevRecruitmentId, $recruitmentId, Auth::user()->id)); |
||
| 38 | |||
| 39 | return $candidate; |
||
| 40 | } |
||
| 42 |