Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | protected function getOutputBuffer(StreamOutput $output) |
||
27 | { |
||
28 | $handle = $output->getStream(); |
||
29 | |||
30 | rewind($handle); |
||
31 | $display = stream_get_contents($handle); |
||
32 | |||
33 | // Symfony2's StreamOutput has a hidden dependency on PHP_EOL which needs to be removed by |
||
34 | // normalizing it to the standard newline for text here. |
||
35 | $display = strtr($display, array(PHP_EOL => "\n")); |
||
36 | |||
37 | return $display; |
||
38 | } |
||
39 | } |
||
40 |