| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 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->getData()->getFormat() === null || $this->force) { |
||
| 33 | $stream->getData()->setFormat($this->converter, $this->params); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | return $response; |
||
| 37 | } |
||
| 39 |