Code Duplication    Length = 15-15 lines in 2 locations

src/Phinx/Migration/Manager.php 2 locations

@@ 729-743 (lines=15) @@
726
     *
727
     * @return string[]
728
     */
729
    protected function getMigrationFiles()
730
    {
731
        $config = $this->getConfig();
732
        $paths = $config->getMigrationPaths();
733
        $files = [];
734
735
        foreach ($paths as $path) {
736
            $files = array_merge(
737
                $files,
738
                Util::glob($path . DIRECTORY_SEPARATOR . '*.php')
739
            );
740
        }
741
742
        return $files;
743
    }
744
745
    /**
746
     * Sets the database seeders.
@@ 820-834 (lines=15) @@
817
     *
818
     * @return string[]
819
     */
820
    protected function getSeedFiles()
821
    {
822
        $config = $this->getConfig();
823
        $paths = $config->getSeedPaths();
824
        $files = [];
825
826
        foreach ($paths as $path) {
827
            $files = array_merge(
828
                $files,
829
                Util::glob($path . DIRECTORY_SEPARATOR . '*.php')
830
            );
831
        }
832
833
        return $files;
834
    }
835
836
    /**
837
     * Sets the config.