Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
22 | { |
||
23 | $response = $handler->handle($request); |
||
24 | if ($response instanceof WebResponse && !$response->hasResponseFormatter()) { |
||
25 | $response = $response->withResponseFormatter($this->responseFormatter); |
||
26 | } |
||
27 | |||
28 | return $response; |
||
29 | } |
||
31 |