Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
25 | { |
||
26 | $response = $handler->handle($request); |
||
27 | if ($response instanceof WebResponse && !$response->hasResponseFormatter()) { |
||
28 | if ($this->forceRender) { |
||
29 | $response = $this->responseFormatter->format($response); |
||
30 | } else { |
||
31 | $response = $response->withResponseFormatter($this->responseFormatter); |
||
32 | } |
||
33 | } |
||
34 | |||
35 | return $response; |
||
36 | } |
||
38 |