From 631aa12a59d36957b65b4f1abc681d4728fe4122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danyi=20D=C3=A1vid?= Date: Tue, 21 May 2019 21:01:32 +0200 Subject: [PATCH] * table formatting --- src/App/Command/PendingCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App/Command/PendingCommand.php b/src/App/Command/PendingCommand.php index d487e93..50c9165 100644 --- a/src/App/Command/PendingCommand.php +++ b/src/App/Command/PendingCommand.php @@ -39,14 +39,16 @@ class PendingCommand extends Command protected function execute(InputInterface $input, OutputInterface $output) { $pendingImports = $this->smsStoreService->getFailedImports(); - $output->writeln("Pengind SMS:"); $section = $output->section(); $table = new Table($section); + $table->setHeaderTitle("Pengind SMS:"); $table->setHeaders([ 'Id', 'Text', 'Date', ]); + $table->setColumnMaxWidth(1, 80); + $table->setColumnMaxWidth(2, 18); /** @var Sms $sms */ foreach ($pendingImports as $sms) { $table->addRow([