getType()) { case ReportInterface::TYPE_SUCCESS: $color = '0;32'; // green break; case ReportInterface::TYPE_WARNING: $color = '1;33'; // yellow break; case ReportInterface::TYPE_ERROR: $color = '1;31'; // red break; default: $color = '0;37'; // light grey } if ($useColor === self::AUTOSENSE) { $useColor = getenv('TAO_CONSOLE') !== 'nocolor' && !SystemHelper::isWindows(); } $output = ($useColor ? "\033[" . $color . 'm' : '') . ($intend > 0 ? str_repeat(' ', $intend) : '') . $report->getMessage() . ($useColor ? "\033[0m" : '') . PHP_EOL; foreach ($report as $child) { $output .= self::renderToCommandline($child, $useColor, $intend + 2); } return $output; } }