From 379f9f2d536df6c3e9f90373e4e958ad4b836b32 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 2 Apr 2019 20:36:00 +0200 Subject: [PATCH] Fix phpcs --- htdocs/fichinter/list.php | 2 +- htdocs/margin/lib/margins.lib.php | 6 +++--- htdocs/product/stock/replenish.php | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php index dd184d7ac1f..b22cd144123 100644 --- a/htdocs/fichinter/list.php +++ b/htdocs/fichinter/list.php @@ -533,7 +533,7 @@ if ($resql) $projetstatic->ref=$obj->projet_ref; $projetstatic->title=$obj->projet_title; if ($projetstatic->id > 0) { - print $projetstatic->getNomUrl(1,''); + print $projetstatic->getNomUrl(1, ''); } print ''; if (! $i) $totalarray['nbfield']++; diff --git a/htdocs/margin/lib/margins.lib.php b/htdocs/margin/lib/margins.lib.php index d4fc701c491..27234be2a31 100644 --- a/htdocs/margin/lib/margins.lib.php +++ b/htdocs/margin/lib/margins.lib.php @@ -88,7 +88,7 @@ function marges_prepare_head() $head[$h][1] = $langs->trans($title); $head[$h][2] = 'agentMargins'; - + if ($user->rights->margins->creer) { $h++; $head[$h][0] = DOL_URL_ROOT."/margin/checkMargins.php"; @@ -96,8 +96,8 @@ function marges_prepare_head() $head[$h][2] = 'checkMargins'; } - complete_head_from_modules($conf,$langs,null,$head,$h,'margins','remove'); - complete_head_from_modules($conf,$langs,null,$head,$h,'margins'); + complete_head_from_modules($conf, $langs, null, $head, $h, 'margins', 'remove'); + complete_head_from_modules($conf, $langs, null, $head, $h, 'margins'); return $head; } diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 0a4f835effc..b4133d8ed8a 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -307,7 +307,7 @@ $sql.= ' SUM('.$db->ifsql("s.reel IS NULL", "0", "s.reel").') as stock_physique' // Add fields from hooks $parameters=array(); -$reshook=$hookmanager->executeHooks('printFieldListSelect',$parameters); // Note that $action and $object may have been modified by hook +$reshook=$hookmanager->executeHooks('printFieldListSelect', $parameters); // Note that $action and $object may have been modified by hook $sql.=$hookmanager->resPrint; $sql.= ' FROM ' . MAIN_DB_PREFIX . 'product as p'; @@ -322,7 +322,7 @@ if (!empty($conf->global->STOCK_ALLOW_ADD_LIMIT_STOCK_BY_WAREHOUSE) && $fk_entre // Add fields from hooks $parameters=array(); -$reshook=$hookmanager->executeHooks('printFieldListJoin',$parameters); // Note that $action and $object may have been modified by hook +$reshook=$hookmanager->executeHooks('printFieldListJoin', $parameters); // Note that $action and $object may have been modified by hook $sql.=$hookmanager->resPrint; $sql.= ' WHERE p.entity IN (' . getEntity('product') . ')'; @@ -407,7 +407,7 @@ if ($usevirtualstock) // Add where from hooks $parameters=array(); -$reshook=$hookmanager->executeHooks('printFieldListWhere',$parameters); // Note that $action and $object may have been modified by hook +$reshook=$hookmanager->executeHooks('printFieldListWhere', $parameters); // Note that $action and $object may have been modified by hook $sql.=$hookmanager->resPrint; $sql.= $db->order($sortfield, $sortorder); @@ -475,7 +475,7 @@ print $langs->trans('Supplier').' '.$form->select_company($fk_supplier, 'fk_supp print ''; $parameters=array(); -$reshook=$hookmanager->executeHooks('printFieldPreListTitle',$parameters); // Note that $action and $object may have been modified by hook +$reshook=$hookmanager->executeHooks('printFieldPreListTitle', $parameters); // Note that $action and $object may have been modified by hook if (empty($reshook)) print $hookmanager->resPrint; print '
'; @@ -565,7 +565,7 @@ print ' '; print ''; // Fields from hook $parameters=array('param'=>$param,'sortfield'=>$sortfield,'sortorder'=>$sortorder); -$reshook=$hookmanager->executeHooks('printFieldListOption',$parameters); // Note that $action and $object may have been modified by hook +$reshook=$hookmanager->executeHooks('printFieldListOption', $parameters); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint; $searchpicto=$form->showFilterAndCheckAddButtons(0); @@ -588,7 +588,7 @@ print_liste_field_titre('SupplierRef', $_SERVER["PHP_SELF"], '', $param, '', '', // Hook fields $parameters=array('param'=>$param,'sortfield'=>$sortfield,'sortorder'=>$sortorder); -$reshook=$hookmanager->executeHooks('printFieldListTitle',$parameters); // Note that $action and $object may have been modified by hook +$reshook=$hookmanager->executeHooks('printFieldListTitle', $parameters); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint; print "\n";