Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
50 | protected function doWrite(string $message, bool $newline): void |
||
51 | { |
||
52 | if ($newline) { |
||
53 | $message .= PHP_EOL; |
||
54 | } |
||
55 | |||
56 | if (false === @fwrite($this->stream, $message)) { |
||
57 | // should never happen |
||
58 | throw new \RuntimeException('Unable to write output.'); |
||
59 | } |
||
60 | |||
61 | fflush($this->stream); |
||
62 | } |
||
72 |