Conditions | 2 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function emitStatusLine(ResponseInterface $response) : void |
||
12 | { |
||
13 | $reasonPhrase = $response->getReasonPhrase(); |
||
14 | $statusCode = $response->getStatusCode(); |
||
15 | |||
16 | header('HTTP/' . $response->getProtocolVersion() . ' ' . $statusCode . ($reasonPhrase ? ' ' . $reasonPhrase : ''), true, $statusCode); |
||
17 | } |
||
43 | } |