| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public static function changeStage(ChangeStageRequest $request) |
||
| 13 | { |
||
| 14 | $candidate = Candidate::findOrFail($request->get('candidate_id')); |
||
|
|
|||
| 15 | $previousStage = $candidate->stage_id; |
||
| 16 | $candidate->stage_id = $request->get('stage_id'); |
||
| 17 | $candidate->save(); |
||
| 18 | |||
| 19 | if ($candidate->wasChanged()) { |
||
| 20 | if ($request->get('send_message')) { |
||
| 21 | MessageService::sendMessage($candidate, $request); |
||
| 22 | } |
||
| 23 | event(new CandidateStageChanged($candidate, $previousStage, $candidate->stage_id)); |
||
| 24 | } |
||
| 25 | |||
| 26 | return $candidate; |
||
| 27 | } |
||
| 29 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.