protected function getModules(Repository $repository)
    {
        $modules = $repository->all();
        $results = [];

        foreach ($modules as $module) {
            $results[] = $this->getModuleInformation($repository, $module);
        }

        return array_filter($results);
    }
protected function getModules(Repository $repository)
    {
        $modules = $repository->all();
        $results = [];

        foreach ($modules as $module) {
            $results[] = $this->getModuleInformation($repository, $module);
        }

        return array_filter($results);
    }
protected function getModules ( Repository $ repository ) { $ modules = $ repository -> all ( ) ; $ results = [ ] ; foreach ( $ modules as $ module ) { $ results [ ] = $ this -> getModuleInformation ( $ repository , $ module ) ; } return array_filter ( $ results ) ; }
Get all modules.

@param $repository
@return array
Get all modules .