From 092e5b9d2333e99e52af75abdc74c9f8660ba4a7 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Tue, 4 Sep 2018 00:28:12 +0200 Subject: [PATCH] flarum info: Tweak output styling --- src/Foundation/Console/InfoCommand.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Foundation/Console/InfoCommand.php b/src/Foundation/Console/InfoCommand.php index 3ecc85b6e..520cbc1d0 100644 --- a/src/Foundation/Console/InfoCommand.php +++ b/src/Foundation/Console/InfoCommand.php @@ -57,12 +57,12 @@ class InfoCommand extends AbstractCommand protected function fire() { $coreVersion = $this->findPackageVersion(__DIR__.'/../../../', Application::VERSION); - $this->info("Flarum core $coreVersion"); + $this->output->writeln("Flarum core $coreVersion"); - $this->info('PHP '.PHP_VERSION); + $this->output->writeln('PHP version: '.PHP_VERSION); $phpExtensions = implode(', ', get_loaded_extensions()); - $this->info("Loaded extensions: $phpExtensions"); + $this->output->writeln("Loaded extensions: $phpExtensions"); $table = new Table($this->output); $table->setHeaders([ @@ -76,8 +76,7 @@ class InfoCommand extends AbstractCommand ] ])->setStyle( (new TableStyle()) - ->setCellRowFormat('%s') - ->setBorderFormat('%s') + ->setCellHeaderFormat('%s') ); foreach ($this->extensions->getEnabledExtensions() as $extension) { @@ -95,9 +94,9 @@ class InfoCommand extends AbstractCommand $table->render(); - $this->info('Base URL: '.$this->config['url']); - $this->info('Installation path: '.getcwd()); - $this->info('Debug mode '.($this->config['debug'] ? 'ON' : 'off')); + $this->output->writeln('Base URL: '.$this->config['url']); + $this->output->writeln('Installation path: '.getcwd()); + $this->output->writeln('Debug mode: '.($this->config['debug'] ? 'ON' : 'off')); if ($this->config['debug']) { $this->error(