Code Duplication    Length = 3-5 lines in 3 locations

src/Phinx/Migration/Manager.php 3 locations

@@ 671-673 (lines=3) @@
668
        if ($this->migrations === null) {
669
            $phpFiles = $this->getMigrationFiles();
670
671
            if (OutputInterface::VERBOSITY_VERBOSE <= $this->getOutput()->getVerbosity()) {
672
                $this->getOutput()->writeln("Migration file " . implode(", ", $phpFiles));
673
            }
674
675
            // filter the files to only get the ones that match our naming scheme
676
            $fileNames = [];
@@ 682-684 (lines=3) @@
679
680
            foreach ($phpFiles as $filePath) {
681
                if (Util::isValidMigrationFileName(basename($filePath))) {
682
                    if (OutputInterface::VERBOSITY_VERBOSE <= $this->getOutput()->getVerbosity()) {
683
                        $this->getOutput()->writeln("Valid migration file " . implode(", ", $phpFiles));
684
                    }
685
686
                    $version = Util::getVersionFromFileName(basename($filePath));
687
@@ 742-746 (lines=5) @@
739
                    }
740
741
                    $versions[$version] = $migration;
742
                } else {
743
                    if (OutputInterface::VERBOSITY_VERBOSE <= $this->getOutput()->getVerbosity()) {
744
                        $this->getOutput()->writeln("Invalid migration file " . implode(", ", $phpFiles));
745
                    }
746
                }
747
            }
748
749
            ksort($versions);