Code Duplication    Length = 7-7 lines in 2 locations

src/Runner.php 2 locations

@@ 352-358 (lines=7) @@
349
                }//end if
350
351
                $dots++;
352
                if ($dots === 60) {
353
                    $padding = ($maxLength - strlen($numProcessed));
354
                    echo str_repeat(' ', $padding);
355
                    $percent = round(($numProcessed / $numFiles) * 100);
356
                    echo " $numProcessed / $numFiles ($percent%)".PHP_EOL;
357
                    $dots = 0;
358
                }
359
            }//end foreach
360
        } else {
361
            // Batching and forking.
@@ 679-685 (lines=7) @@
676
                        }
677
678
                        $dots++;
679
                        if ($dots === 60) {
680
                            $padding = ($maxLength - strlen($numProcessed));
681
                            echo str_repeat(' ', $padding);
682
                            $percent = round(($numProcessed / $totalBatches) * 100);
683
                            echo " $numProcessed / $totalBatches ($percent%)".PHP_EOL;
684
                            $dots = 0;
685
                        }
686
                    }//end if
687
                }//end if
688
            }//end foreach