private function SymfonyStyle::reduceBuffer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Style/SymfonyStyle.php \Symfony\Component\Console\Style\SymfonyStyle::reduceBuffer()
2 calls to SymfonyStyle::reduceBuffer()
- SymfonyStyle::write in vendor/
symfony/ console/ Style/ SymfonyStyle.php - Writes a message to the output.
- SymfonyStyle::writeln in vendor/
symfony/ console/ Style/ SymfonyStyle.php - Writes a message to the output and adds a newline at the end.
File
- vendor/
symfony/ console/ Style/ SymfonyStyle.php, line 398
Class
- SymfonyStyle
- Output decorator helpers for the Symfony Style Guide.
Namespace
Symfony\Component\Console\StyleCode
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));
}