Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
28 | { |
||
29 | $response = $handler->handle($request); |
||
30 | $stream = $response->getBody(); |
||
31 | if ($stream instanceof DataStream) { |
||
32 | if ($stream->getConverter() === null || $this->force) { |
||
33 | $stream->setConverter($this->converter, $this->params); |
||
34 | } |
||
35 | } |
||
36 | return $response; |
||
37 | } |
||
39 |