Code Duplication    Length = 15-15 lines in 2 locations

src/Runner.php 2 locations

@@ 330-344 (lines=15) @@
327
                } else {
328
                    $errors   = $file->getErrorCount();
329
                    $warnings = $file->getWarningCount();
330
                    if ($errors > 0) {
331
                        if ($this->config->colors === true) {
332
                            echo "\033[31m";
333
                        }
334
335
                        echo 'E';
336
                    } else if ($warnings > 0) {
337
                        if ($this->config->colors === true) {
338
                            echo "\033[33m";
339
                        }
340
341
                        echo 'W';
342
                    } else {
343
                        echo '.';
344
                    }
345
346
                    if ($this->config->colors === true) {
347
                        echo "\033[0m";
@@ 658-672 (lines=15) @@
655
                            continue;
656
                        }
657
658
                        if ($childOutput['totalErrors'] > 0) {
659
                            if ($this->config->colors === true) {
660
                                echo "\033[31m";
661
                            }
662
663
                            echo 'E';
664
                        } else if ($childOutput['totalWarnings'] > 0) {
665
                            if ($this->config->colors === true) {
666
                                echo "\033[33m";
667
                            }
668
669
                            echo 'W';
670
                        } else {
671
                            echo '.';
672
                        }
673
674
                        if ($this->config->colors === true) {
675
                            echo "\033[0m";