Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
34 | public function postNotes(Guard $auth) |
||
35 | { |
||
36 | try { |
||
37 | $note = $this->dispatch(new AddNoteCommand( |
||
38 | Binput::get('description'), |
||
39 | Binput::get('noteable_type'), |
||
40 | Binput::get('noteable_id'), |
||
41 | Binput::get('author_id'), |
||
42 | Binput::get('project_id') |
||
43 | )); |
||
44 | } catch (QueryException $e) { |
||
45 | throw new BadRequestHttpException(); |
||
46 | } |
||
47 | |||
48 | return $this->item($note); |
||
49 | } |
||
50 | } |
||
51 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.