diff --git a/eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php b/eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php index 1a2d2465d05..796466d3c12 100644 --- a/eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php +++ b/eZ/Bundle/EzPublishCoreBundle/Command/ReindexCommand.php @@ -173,12 +173,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $output->writeln('Re-indexing started for search engine: ' . $this->searchIndexer->getName()); $output->writeln(''); - $return = $this->indexIncrementally($input, $output, $iterationCount, $commit); - - $output->writeln(''); - $output->writeln('Finished re-indexing'); - - return $return; + return $this->indexIncrementally($input, $output, $iterationCount, $commit); } return 0; @@ -257,6 +252,11 @@ protected function indexIncrementally(InputInterface $input, OutputInterface $ou } $progress->finish(); + $output->writeln(''); + $output->writeln('Finished re-indexing'); + $output->writeln(''); + // clear leftover progress bar parts + $progress->clear(); return 0; } diff --git a/eZ/Bundle/PlatformInstallerBundle/src/Installer/CoreInstaller.php b/eZ/Bundle/PlatformInstallerBundle/src/Installer/CoreInstaller.php index 5f692462904..d95550a5572 100644 --- a/eZ/Bundle/PlatformInstallerBundle/src/Installer/CoreInstaller.php +++ b/eZ/Bundle/PlatformInstallerBundle/src/Installer/CoreInstaller.php @@ -80,8 +80,10 @@ public function importSchema() } $progressBar->finish(); - // go to the next line after ProgressBar::finish - $this->output->writeln(''); + // go to the next line after ProgressBar::finish and add one more extra blank line for readability + $this->output->writeln(PHP_EOL); + // clear any leftover progress bar parts in the output buffer + $progressBar->clear(); } /**