diff --git a/Module/ModuleManager.php b/Module/ModuleManager.php index 2e338d51f..efd72eaef 100644 --- a/Module/ModuleManager.php +++ b/Module/ModuleManager.php @@ -242,6 +242,7 @@ class ModuleManager */ public function getAvailableModules() : array { + return []; } /** @@ -410,13 +411,13 @@ class ModuleManager * * @param string $module Module name * - * @return bool + * @return void * * @throws InvalidModuleException Throws this exception in case the installer doesn't exist * * @since 1.0.0 */ - public function reInit(string $module) : bool + public function reInit(string $module) /* : void */ { $info = $this->loadInfo($module); $class = '\\Modules\\' . $info->getDirectory() . '\\Admin\\Installer'; diff --git a/Stdlib/Map/MultiMap.php b/Stdlib/Map/MultiMap.php index f66228cab..580867753 100644 --- a/Stdlib/Map/MultiMap.php +++ b/Stdlib/Map/MultiMap.php @@ -290,24 +290,20 @@ class MultiMap implements \Countable * * @param mixed $key Key used to identify value * - * @return bool + * @return void * * @since 1.0.0 */ - private function removeMultiple($key) : bool + private function removeMultiple($key) /* : void */ { if ($this->orderType === OrderType::LOOSE) { $keys = Permutation::permut($key); - $removed = false; - foreach ($keys as $key => $value) { - $removed |= $this->remove(implode(':', $value)); + $this->remove(implode(':', $value)); } - - return $removed; } else { - return $this->remove(implode(':', $key)); + $this->remove(implode(':', $key)); } }