Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
41 | 1 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
42 | { |
||
43 | 1 | $queryParams = $request->getQueryParams(); |
|
44 | 1 | $rawUserId = isset($queryParams['id']) ? (int) $queryParams['id'] : null; |
|
45 | 1 | return $this->responder->respond($this->useCase->run($rawUserId)); |
|
46 | } |
||
47 | } |
||
48 |