src/Database/Migration/Manager.php
protected function getMigrationFiles()
    {
        $config = $this->getConfig();
        $paths = $config->getMigrationPaths();
        $files = [];

        foreach ($paths as $path) {
            $files[] = Util::glob($path . DIRECTORY_SEPARATOR . '*.php');
        }

        $files = array_merge(...$files);

        // 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
        return array_unique($files);
    }
protected function getMigrationFiles()
    {
        $config = $this->getConfig();
        $paths = $config->getMigrationPaths();
        $files = [];

        foreach ($paths as $path) {
            $files[] = Util::glob($path . DIRECTORY_SEPARATOR . '*.php');
        }

        $files = array_merge(...$files);

        // 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
        return array_unique($files);
    }
protected function getMigrationFiles ( ) { $ config = $ this -> getConfig ( ) ; $ paths = $ config -> getMigrationPaths ( ) ; $ files = [ ] ; foreach ( $ paths as $ path ) { $ files [ ] = Util :: glob ( $ path . DIRECTORY_SEPARATOR . '*.php' ) ; } $ files = array_merge ( ... $ files ) ; // 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 return array_unique ( $ files ) ; }
Returns a list of migration files found in the provided migration paths.

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