Skip to content
Extraits de code Groupes Projets
Valider cb270d98 rédigé par mattab's avatar mattab
Parcourir les fichiers

Simplified console output and removed stars **********

Stars make reading the output harder
parent 19931b9a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -21,19 +21,12 @@ class ConsoleCommand extends SymfonyCommand ...@@ -21,19 +21,12 @@ class ConsoleCommand extends SymfonyCommand
{ {
public function writeSuccessMessage(OutputInterface $output, $messages) public function writeSuccessMessage(OutputInterface $output, $messages)
{ {
$lengths = array_map('strlen', $messages);
$maxLen = max($lengths) + 4;
$separator = str_pad('', $maxLen, '*');
$output->writeln(''); $output->writeln('');
$output->writeln('<info>' . $separator . '</info>');
foreach ($messages as $message) { foreach ($messages as $message) {
$output->writeln(' ' . $message . ' '); $output->writeln('<info>' . $message . '</info>');
} }
$output->writeln('<info>' . $separator . '</info>');
$output->writeln(''); $output->writeln('');
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter