Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | 2 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
36 | { |
||
37 | 2 | $path = $request->getUri()->getPath(); |
|
38 | 2 | $response = $this->responseFactory->createResponse(Status::NOT_FOUND); |
|
39 | 2 | $response->getBody()->write("We were unable to find the page $path."); |
|
40 | 2 | return $response; |
|
41 | } |
||
43 |