src/Shell/SeedShell.php
protected function getModuleCsvData(array $modules) : array
    {
        $csvFiles = [];

        foreach ($modules as $module) {
            $mc = new ModuleConfig(ConfigType::MIGRATION(), $module);

            $config = json_encode($mc->parse());
            if (false === $config) {
                continue;
            }

            $config = json_decode($config, true);
            if (empty($config)) {
                continue;
            }

            if (! isset($csvFiles[$module])) {
                $csvFiles[$module] = [];
            }

            $csvFiles[$module] = $config;
        }

        return $csvFiles;
    }
protected function getModuleCsvData(array $modules) : array
    {
        $csvFiles = [];

        foreach ($modules as $module) {
            $mc = new ModuleConfig(ConfigType::MIGRATION(), $module);

            $config = json_encode($mc->parse());
            if (false === $config) {
                continue;
            }

            $config = json_decode($config, true);
            if (empty($config)) {
                continue;
            }

            if (! isset($csvFiles[$module])) {
                $csvFiles[$module] = [];
            }

            $csvFiles[$module] = $config;
        }

        return $csvFiles;
    }
protected function getModuleCsvData ( array $ modules ) : array { $ csvFiles = [ ] ; foreach ( $ modules as $ module ) { $ mc = new ModuleConfig ( ConfigType :: MIGRATION ( ) , $ module ) ; $ config = json_encode ( $ mc -> parse ( ) ) ; if ( false === $ config ) { continue ; } $ config = json_decode ( $ config , true ) ; if ( empty ( $ config ) ) { continue ; } if ( ! isset ( $ csvFiles [ $ module ] ) ) { $ csvFiles [ $ module ] = [ ] ; } $ csvFiles [ $ module ] = $ config ; } return $ csvFiles ; }
Get module csv data.
@param string[] $modules modules
@return mixed[]
Get module csv data .