/** * Remove the hidden modules from the modules array * * @param array $modules The modules we wan't to clean up */ protected function removeHiddenModules(&$modules) { foreach ($modules as $key => $module) { if (in_array($module, ForkInstaller::getHiddenModules())) { unset($modules[$key]); } } }