| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 7 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 18 | public function render(array $data = []): ResponseInterface | ||
| 19 |     { | ||
| 20 | $jsonData = array_key_exists(static::JSON_ROOT, $data) ? $data[static::JSON_ROOT] : $data; | ||
| 21 | $this->getEmptyBody()->write(json_encode($jsonData, $this->jsonOption)); | ||
| 22 | |||
| 23 | return $this->response | ||
| 24 |             ->withHeader('Content-Type', 'application/json'); | ||
| 25 | } | ||
| 52 |