mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 23:18:43 +02:00
Merge remote-tracking branch 'origin/support/3.2' into develop
This commit is contained in:
@@ -104,7 +104,7 @@ class SymfonyStyle extends OutputStyle
|
||||
public function listing(array $elements)
|
||||
{
|
||||
$this->autoPrependText();
|
||||
$elements = array_map(fn ($element) => \sprintf(' * %s', $element), $elements);
|
||||
$elements = array_map(static fn ($element) => \sprintf(' * %s', $element), $elements);
|
||||
|
||||
$this->writeln($elements);
|
||||
$this->newLine();
|
||||
@@ -475,12 +475,14 @@ class SymfonyStyle extends OutputStyle
|
||||
$message = OutputFormatter::escape($message);
|
||||
}
|
||||
|
||||
$message = str_replace("\r\n", "\n", $message);
|
||||
|
||||
$lines = array_merge(
|
||||
$lines,
|
||||
explode(\PHP_EOL, $outputWrapper->wrap(
|
||||
explode("\n", $outputWrapper->wrap(
|
||||
$message,
|
||||
$this->lineLength - $prefixLength - $indentLength,
|
||||
\PHP_EOL
|
||||
"\n"
|
||||
))
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user