| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 3 | public function __invoke( |
|
| 16 | 3 | Request $request, |
|
| 17 | 3 | Response $response, |
|
| 18 | array $args |
||
| 19 | 2 | ): Response { |
|
| 20 | $input = (array) $request->getParsedBody(); |
||
| 21 | $taskId = (int) $args['id']; |
||
| 22 | $userId = $this->getAndValidateUserId($input); |
||
| 23 | $task = $this->getTaskService()->getOne($taskId, $userId); |
||
| 24 | |||
| 25 | return $this->jsonResponse($response, 'success', $task, 200); |
||
| 26 | } |
||
| 28 |