Code Duplication    Length = 15-15 lines in 2 locations

src/Runner.php 2 locations

@@ 292-306 (lines=15) @@
289
            } else {
290
                $errors   = $file->getErrorCount();
291
                $warnings = $file->getWarningCount();
292
                if ($errors > 0) {
293
                    if ($this->config->colors === true) {
294
                        echo "\033[31m";
295
                    }
296
297
                    echo 'E';
298
                } else if ($warnings > 0) {
299
                    if ($this->config->colors === true) {
300
                        echo "\033[33m";
301
                    }
302
303
                    echo 'W';
304
                } else {
305
                    echo '.';
306
                }
307
308
                if ($this->config->colors === true) {
309
                    echo "\033[0m";
@@ 524-538 (lines=15) @@
521
                            continue;
522
                        }
523
524
                        if ($childOutput['totalErrors'] > 0) {
525
                            if ($this->config->colors === true) {
526
                                echo "\033[31m";
527
                            }
528
529
                            echo 'E';
530
                        } else if ($childOutput['totalWarnings'] > 0) {
531
                            if ($this->config->colors === true) {
532
                                echo "\033[33m";
533
                            }
534
535
                            echo 'W';
536
                        } else {
537
                            echo '.';
538
                        }
539
540
                        if ($this->config->colors === true) {
541
                            echo "\033[0m";