* table formatting
This commit is contained in:
parent
1225f8f391
commit
631aa12a59
@ -39,14 +39,16 @@ class PendingCommand extends Command
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$pendingImports = $this->smsStoreService->getFailedImports();
|
||||
$output->writeln("<info>Pengind SMS:</info>");
|
||||
$section = $output->section();
|
||||
$table = new Table($section);
|
||||
$table->setHeaderTitle("<info>Pengind SMS:</info>");
|
||||
$table->setHeaders([
|
||||
'Id',
|
||||
'Text',
|
||||
'Date',
|
||||
]);
|
||||
$table->setColumnMaxWidth(1, 80);
|
||||
$table->setColumnMaxWidth(2, 18);
|
||||
/** @var Sms $sms */
|
||||
foreach ($pendingImports as $sms) {
|
||||
$table->addRow([
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user