protected function displayColoriedStatus($info) { $status = $this->db->statusLabel($info['status']); switch ($status) { case 'error': case 'failure': $color = LoggerAppenderConsoleColor::RED; break; case 'success': $color = LoggerAppenderConsoleColor::GREEN; break; case 'skipped': $color = LoggerAppenderConsoleColor::YELLOW; break; default: break; } return $color . ($info['start_date'] . " " . $info['execution_delay'] . " " . ucfirst($status) . " " . $info['id'] . " " . $info['script'] . PHP_EOL . LoggerAppenderConsoleColor::NOCOLOR); }
protected function doAlreadyApplied() { foreach ($this->db->getAllBuckets() as $row) { echo $row['start_date'] . " " . ucfirst($this->db->statusLabel($row['status'])) . " " . $row['script'] . PHP_EOL; } }