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;
    }