| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function list(Request $request) |
||
| 27 | { |
||
| 28 | $recruitmentId = $request->get('recruitment_id'); |
||
|
|
|||
| 29 | |||
| 30 | if ($recruitmentId) { |
||
| 31 | $sources = Source::where('recruitment_id', $recruitmentId)->orderBy('created_at', 'DESC')->get(); |
||
| 32 | } else { |
||
| 33 | $sources = Source::orderBy('created_at', 'DESC')->get(); |
||
| 34 | } |
||
| 35 | |||
| 36 | return SourceResource::collection($sources); |
||
| 37 | } |
||
| 53 |
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.