Code Duplication    Length = 7-7 lines in 2 locations

src/Runner.php 2 locations

@@ 314-320 (lines=7) @@
311
            }//end if
312
313
            $dots++;
314
            if ($dots === 60) {
315
                $padding = ($maxLength - strlen($numProcessed));
316
                echo str_repeat(' ', $padding);
317
                $percent = round(($numProcessed / $numFiles) * 100);
318
                echo " $numProcessed / $numFiles ($percent%)".PHP_EOL;
319
                $dots = 0;
320
            }
321
        }//end foreach
322
323
        restore_error_handler();
@@ 545-551 (lines=7) @@
542
                        }
543
544
                        $dots++;
545
                        if ($dots === 60) {
546
                            $padding = ($maxLength - strlen($numProcessed));
547
                            echo str_repeat(' ', $padding);
548
                            $percent = round(($numProcessed / $totalBatches) * 100);
549
                            echo " $numProcessed / $totalBatches ($percent%)".PHP_EOL;
550
                            $dots = 0;
551
                        }
552
                    }//end if
553
                }//end if
554
            }//end foreach