| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function format(Response $deferredResponse): ResponseInterface |
||
| 23 | { |
||
| 24 | $data = $deferredResponse->getData(); |
||
| 25 | $response = $deferredResponse->getResponse(); |
||
| 26 | $response->getBody()->write((string)$data); |
||
| 27 | |||
| 28 | return $response->withHeader('Content-Type', $this->contentType . '; charset=' . $this->encoding); |
||
| 29 | } |
||
| 36 |