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