src/Phinx/Migration/Manager.php
protected function getSeedFiles()
    {
        $config = $this->getConfig();
        $paths = $config->getSeedPaths();
        $files = [];

        foreach ($paths as $path) {
            $files = array_merge(
                $files,
                Util::glob($path . DIRECTORY_SEPARATOR . '*.php')
            );
        }
        // glob() can return the same file multiple times
        // This will cause the migration to fail with a
        // false assumption of duplicate migrations
        // http://php.net/manual/en/function.glob.php#110340
        $files = array_unique($files);

        return $files;
    }
protected function getSeedFiles()
    {
        $config = $this->getConfig();
        $paths = $config->getSeedPaths();
        $files = [];

        foreach ($paths as $path) {
            $files = array_merge(
                $files,
                Util::glob($path . DIRECTORY_SEPARATOR . '*.php')
            );
        }
        // glob() can return the same file multiple times
        // This will cause the migration to fail with a
        // false assumption of duplicate migrations
        // http://php.net/manual/en/function.glob.php#110340
        $files = array_unique($files);

        return $files;
    }
protected function getSeedFiles ( ) { $ config = $ this -> getConfig ( ) ; $ paths = $ config -> getSeedPaths ( ) ; $ files = [ ] ; foreach ( $ paths as $ path ) { $ files = array_merge ( $ files , Util :: glob ( $ path . DIRECTORY_SEPARATOR . '*.php' ) ) ; } // glob() can return the same file multiple times // This will cause the migration to fail with a // false assumption of duplicate migrations // http://php.net/manual/en/function.glob.php#110340 $ files = array_unique ( $ files ) ; return $ files ; }
Returns a list of seed files found in the provided seed paths.

@return string[]
Returns a list of seed files found in the provided seed paths .