| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function postComments(Guard $auth) |
||
| 35 | { |
||
| 36 | try { |
||
| 37 | $comment = $this->dispatch(new AddCommentCommand( |
||
| 38 | Binput::get('message'), |
||
| 39 | Binput::get('target_type'), |
||
| 40 | Binput::get('target_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($comment); |
||
| 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.