@@ 305-319 (lines=15) @@ | ||
302 | } else { |
|
303 | $errors = $file->getErrorCount(); |
|
304 | $warnings = $file->getWarningCount(); |
|
305 | if ($errors > 0) { |
|
306 | if ($this->config->colors === true) { |
|
307 | echo "\033[31m"; |
|
308 | } |
|
309 | ||
310 | echo 'E'; |
|
311 | } else if ($warnings > 0) { |
|
312 | if ($this->config->colors === true) { |
|
313 | echo "\033[33m"; |
|
314 | } |
|
315 | ||
316 | echo 'W'; |
|
317 | } else { |
|
318 | echo '.'; |
|
319 | } |
|
320 | ||
321 | if ($this->config->colors === true) { |
|
322 | echo "\033[0m"; |
|
@@ 537-551 (lines=15) @@ | ||
534 | continue; |
|
535 | } |
|
536 | ||
537 | if ($childOutput['totalErrors'] > 0) { |
|
538 | if ($this->config->colors === true) { |
|
539 | echo "\033[31m"; |
|
540 | } |
|
541 | ||
542 | echo 'E'; |
|
543 | } else if ($childOutput['totalWarnings'] > 0) { |
|
544 | if ($this->config->colors === true) { |
|
545 | echo "\033[33m"; |
|
546 | } |
|
547 | ||
548 | echo 'W'; |
|
549 | } else { |
|
550 | echo '.'; |
|
551 | } |
|
552 | ||
553 | if ($this->config->colors === true) { |
|
554 | echo "\033[0m"; |