Symfony\Component\Console\Style\SymfonyStyle::reduceBuffer PHP Method

reduceBuffer() private method

private reduceBuffer ( $messages )
    private function reduceBuffer($messages)
    {
        // We need to know if the two last chars are PHP_EOL
        // Preserve the last 4 chars inserted (PHP_EOL on windows is two chars) in the history buffer
        return array_map(function ($value) {
            return substr($value, -4);
        }, array_merge(array($this->bufferedOutput->fetch()), (array) $messages));
    }