| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 49 | { |
||
| 50 | $body = $this->viewEngine->render($this->view); |
||
| 51 | $body = $this->viewEngine->render($this->getLayout(), [ |
||
| 52 | 'content' => $body, |
||
| 53 | ]); |
||
| 54 | |||
| 55 | $stream = new Stream('php://memory', 'r+'); |
||
| 56 | $stream->write($body); |
||
| 57 | $response = (new Response())->withStatus(404)->withBody($stream); |
||
| 58 | |||
| 59 | return $response; |
||
| 60 | } |
||
| 61 | } |