From 2629eb5bb80f393dcf1184788e9af85c9033282c Mon Sep 17 00:00:00 2001 From: mgabriel Date: Thu, 9 Feb 2023 10:02:24 +0100 Subject: [PATCH] Corrected Stickler CI errors once again by setting a proper PHP indentation style. --- htdocs/core/class/html.form.class.php | 28 +++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index f8c04c562af..1db337166ad 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2542,9 +2542,9 @@ class Form global $langs, $conf; global $hookmanager; - if (empty($hookmanager->hooks)) { - $hookmanager->initHooks(array('commonobject')); - } + if (empty($hookmanager->hooks)) { + $hookmanager->initHooks(array('commonobject')); + } $out = ''; $outarray = array(); @@ -2901,11 +2901,11 @@ class Form protected function constructProductListOption(&$objp, &$opt, &$optJson, $price_level, $selected, $hidepriceinlabel = 0, $filterkey = '', $novirtualstock = 0) { global $langs, $conf, $user; - global $hookmanager; + global $hookmanager; - if (empty($hookmanager->hooks)) { - $hookmanager->initHooks(array('commonobject')); - } + if (empty($hookmanager->hooks)) { + $hookmanager->initHooks(array('commonobject')); + } $outkey = ''; $outval = ''; @@ -3191,13 +3191,13 @@ class Form } } - $parameters = array('objp'=>$objp); - $reshook = $hookmanager->executeHooks('constructProductListOption', $parameters); // Note that $action and $object may have been modified by hook - if (!empty($reshook)) { - $opt = $hookmanager->resPrint; - } else { - $opt .= $hookmanager->resPrint; - } + $parameters = array('objp'=>$objp); + $reshook = $hookmanager->executeHooks('constructProductListOption', $parameters); // Note that $action and $object may have been modified by hook + if (!empty($reshook)) { + $opt = $hookmanager->resPrint; + } else { + $opt .= $hookmanager->resPrint; + } $opt .= "\n"; $optJson = array(