Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
25 | private function writeHeader() |
||
26 | { |
||
27 | $header = "HTTP/1.1 {$this->responseCode} " . self::RESPONSE_MESSAGES[$this->responseCode] . "\r\n" |
||
28 | . \implode("\r\n", $this->headers) . "\r\n" |
||
29 | . "\r\n"; |
||
30 | |||
31 | \file_put_contents($this->file, $header); |
||
32 | |||
33 | $this->headerWritten = true; |
||
34 | } |
||
76 |