Skip to content
Extraits de code Groupes Projets
Valider 6a0b8dda rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

Merge pull request #9824 from piwik/simpler_console_output

Simplified console output and removed stars **********
parents 5fbbafcc cb270d98
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