| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function format(WebResponse $webResponse): ResponseInterface |
||
| 26 | { |
||
| 27 | $content = $this->jsonSerializer->serialize($webResponse->getData()); |
||
| 28 | $response = $webResponse->getResponse(); |
||
| 29 | $response->getBody()->write($content); |
||
| 30 | |||
| 31 | return $response->withHeader('Content-Type', $this->contentType); |
||
| 32 | } |
||
| 34 |