| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function create(Request $request) |
||
| 18 | { |
||
| 19 | $note = new Note(); |
||
| 20 | $note->candidate_id = $request->candidate_id; |
||
| 21 | $note->body = $request->body; |
||
| 22 | $note->user_id = \Auth::id(); |
||
| 23 | $note->save(); |
||
| 24 | |||
| 25 | $note = Note::with('user')->find($note->id); |
||
| 26 | |||
| 27 | return response()->json($note, 201, ['Location'=>'/notes/'.$note->id]); |
||
| 28 | } |
||
| 30 |
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.