mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Scrutinizer php fixes
This commit is contained in:
parent
da5ede0f9b
commit
433b3b4d66
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user