| 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 | 2 | public function __invoke( |
|
| 16 | 2 | Request $request, |
|
| 17 | 2 | Response $response, |
|
| 18 | array $args |
||
| 19 | 1 | ): Response { |
|
| 20 | $input = (array) $request->getParsedBody(); |
||
| 21 | $taskId = (int) $args['id']; |
||
| 22 | $userId = $this->getAndValidateUserId($input); |
||
| 23 | $this->getTaskService()->delete($taskId, $userId); |
||
| 24 | |||
| 25 | return $this->jsonResponse($response, 'success', null, 204); |
||
| 26 | } |
||
| 28 |