Skip to content

Commit

Permalink
Fix PhpCsfixer
Browse files Browse the repository at this point in the history
  • Loading branch information
nenes25 committed Feb 6, 2024
1 parent 0c2d62e commit e6ae1ce
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions controllers/admin/change.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,20 @@ public function initPageHeaderToolbar()
* @param string $token
* @param int $id
* @param string|null $name
*
* @return string
*
* @throws SmartyException
*/
public function displaygenerateUpdateLink($token, $id, $name = null) :string
public function displaygenerateUpdateLink($token, $id, $name = null): string
{
$this->context->smarty->assign(array(
$this->context->smarty->assign([
'href' => self::$currentIndex .
'&' . $this->identifier . '=' . $id .
'&action=generateUpdate&token=' . ($token != null ? $token : $this->token),
'action' => $this->l('Generate a new update'),
));
]);

return $this->context->smarty->fetch(
_PS_MODULE_DIR_ . $this->module->name . '/views/templates/admin/change/helpers/list/list_action_update.tpl'
);
Expand All @@ -216,7 +219,7 @@ public function displaygenerateUpdateLink($token, $id, $name = null) :string
*/
public function processGenerateUpdate()
{
if ( $id_change = Tools::getValue('id_change')){
if ($id_change = Tools::getValue('id_change')) {
try {
/** @var \Hhennes\ModulesManager\Patch\Generator $patchGenerator */
$patchGenerator = $this->get('hhennes.modulesmanager.patch.generator');
Expand Down

0 comments on commit e6ae1ce

Please sign in to comment.