src/Shell/SeedShell.php
public function getModulesWithoutRelations(array $modules) : array
    {
        $result = [];
        foreach ($modules as $moduleName => $module) {
            if (isset($module['relations']) && is_array($module['relations']) && ! empty($module['relations'])) {
                continue;
            }
            $result[] = $moduleName;
        }

        return $result;
    }
public function getModulesWithoutRelations(array $modules) : array
    {
        $result = [];
        foreach ($modules as $moduleName => $module) {
            if (isset($module['relations']) && is_array($module['relations']) && ! empty($module['relations'])) {
                continue;
            }
            $result[] = $moduleName;
        }

        return $result;
    }
public function getModulesWithoutRelations ( array $ modules ) : array { $ result = [ ] ; foreach ( $ modules as $ moduleName => $ module ) { if ( isset ( $ module [ 'relations' ] ) && is_array ( $ module [ 'relations' ] ) && ! empty ( $ module [ 'relations' ] ) ) { continue ; } $ result [ ] = $ moduleName ; } return $ result ; }
Return a list of module names that do not have relations.

@param mixed[] $modules modules.
@return mixed[]
Return a list of module names that do not have relations .