diff --git a/classes/Module/Install.php b/classes/Module/Install.php index bcd18e699..bc67a414f 100644 --- a/classes/Module/Install.php +++ b/classes/Module/Install.php @@ -67,9 +67,7 @@ public function installInMenu() /** @var array $lang */ foreach (\Language::getLanguages(true) as $lang) { - if (is_array($lang)) { - $tab->name[$lang['id_lang']] = $this->module->displayName . ' (' . $k . ')'; - } + $tab->name[$lang['id_lang']] = $this->module->displayName . ' (' . $k . ')'; } $tab->id_parent = -1 == self::PARENT_TAB_NAME ? (int) \Tab::getIdFromClassName((string) self::PARENT_TAB_NAME) : -1; diff --git a/classes/Provider/ShopProvider.php b/classes/Provider/ShopProvider.php index f488764bf..80812e1c7 100644 --- a/classes/Provider/ShopProvider.php +++ b/classes/Provider/ShopProvider.php @@ -51,7 +51,7 @@ public function __construct( } /** - * @param array|bool $shopData + * @param array $shopData * @param string $psxName * * @return array @@ -60,10 +60,6 @@ public function __construct( */ public function formatShopData($shopData, $psxName = '') { - if (is_bool($shopData)) { - return []; - } - $configuration = $this->shopContext->getConfiguration(); $userToken = $this->shopContext->getUserToken();