Code Duplication    Length = 3-5 lines in 3 locations

src/Phinx/Migration/Manager.php 3 locations

@@ 676-678 (lines=3) @@
673
        if ($this->migrations === null) {
674
            $phpFiles = $this->getMigrationFiles();
675
676
            if (OutputInterface::VERBOSITY_VERBOSE <= $this->getOutput()->getVerbosity()) {
677
                $this->getOutput()->writeln("Migration file " . implode(", ", $phpFiles));
678
            }
679
680
            // filter the files to only get the ones that match our naming scheme
681
            $fileNames = [];
@@ 687-689 (lines=3) @@
684
685
            foreach ($phpFiles as $filePath) {
686
                if (Util::isValidMigrationFileName(basename($filePath))) {
687
                    if (OutputInterface::VERBOSITY_VERBOSE <= $this->getOutput()->getVerbosity()) {
688
                        $this->getOutput()->writeln("Valid migration file " . implode(", ", $phpFiles));
689
                    }
690
691
                    $version = Util::getVersionFromFileName(basename($filePath));
692
@@ 747-751 (lines=5) @@
744
                    }
745
746
                    $versions[$version] = $migration;
747
                } else {
748
                    if (OutputInterface::VERBOSITY_VERBOSE <= $this->getOutput()->getVerbosity()) {
749
                        $this->getOutput()->writeln("Invalid migration file " . implode(", ", $phpFiles));
750
                    }
751
                }
752
            }
753
754
            ksort($versions);