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