getHelperSet()->get('table'); $table->setHeaders(array('Run date', 'In time', 'Run time', 'Errors', 'Jobs')); $table->addRow(array($report['rundate'], $inTime, round($report['runtime'], 4), $report['errors'], count($report['crons']))); } else { // Create table for new Laravel versions. $table = new \Symfony\Component\Console\Helper\Table($this->getOutput()); $table ->setHeaders(array('Run date', 'In time', 'Run time', 'Errors', 'Jobs')) ->setRows(array(array($report['rundate'], $inTime, round($report['runtime'], 4), $report['errors'], count($report['crons'])))); } // Output table. $table->render($this->getOutput()); } }