Skip to content

Commit

Permalink
fix: remove useless check
Browse files Browse the repository at this point in the history
  • Loading branch information
atourneriePresta committed Oct 15, 2021
1 parent 09a8580 commit 3abf70e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions classes/Module/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 1 addition & 5 deletions classes/Provider/ShopProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct(
}

/**
* @param array|bool $shopData
* @param array $shopData
* @param string $psxName
*
* @return array
Expand All @@ -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();

Expand Down

0 comments on commit 3abf70e

Please sign in to comment.