Skip to content

Commit

Permalink
composer update and php-cs-fixerv3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leemyongpakvn committed Nov 13, 2023
1 parent f09612a commit f90daf2
Show file tree
Hide file tree
Showing 4 changed files with 238 additions and 467 deletions.
14 changes: 7 additions & 7 deletions blockreassurance.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ public function install()
Configuration::updateValue('PSR_TEXT_COLOR', '#000000');

// Hooks
if (parent::install() &&
$this->registerHook('displayAfterBodyOpeningTag') &&
$this->registerHook('displayNavFullWidth') &&
$this->registerHook('displayFooterAfter') &&
$this->registerHook('displayFooterBefore') &&
$this->registerHook('displayReassurance') &&
$this->registerHook('actionFrontControllerSetMedia')
if (parent::install()
&& $this->registerHook('displayAfterBodyOpeningTag')
&& $this->registerHook('displayNavFullWidth')
&& $this->registerHook('displayFooterAfter')
&& $this->registerHook('displayFooterBefore')
&& $this->registerHook('displayReassurance')
&& $this->registerHook('actionFrontControllerSetMedia')
) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion classes/ReassuranceActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public static function getAllBlockByStatus($id_lang = 1)
$xmlMimes = ['image/svg', 'image/svg+xml'];
foreach ($result as &$item) {
$item['is_svg'] = !empty($item['custom_icon'])
&& (in_array(self::getMimeType(_PS_ROOT_DIR_ . $item['custom_icon']), $xmlMimes));
&& in_array(self::getMimeType(_PS_ROOT_DIR_ . $item['custom_icon']), $xmlMimes);
}

return $result;
Expand Down
Loading

0 comments on commit f90daf2

Please sign in to comment.