From 4634312306b663aebd6cc7a21008829772ec90dc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 27 Feb 2019 04:18:25 +0100 Subject: [PATCH] Fix phpcs --- htdocs/bom/bom_card.php | 8 +++--- htdocs/bom/bom_document.php | 14 +++++----- htdocs/bom/bom_list.php | 18 ++++++------- htdocs/bom/class/api_bom.class.php | 6 ++--- htdocs/bom/class/bom.class.php | 41 +++++++++++++++--------------- htdocs/bom/lib/bom.lib.php | 2 +- htdocs/contact/list.php | 6 ++--- htdocs/takepos/genimg/index.php | 25 +++++++++--------- 8 files changed, 60 insertions(+), 60 deletions(-) diff --git a/htdocs/bom/bom_card.php b/htdocs/bom/bom_card.php index 07e067d2814..2b5163bb4f2 100644 --- a/htdocs/bom/bom_card.php +++ b/htdocs/bom/bom_card.php @@ -71,7 +71,7 @@ $ref = GETPOST('ref', 'alpha'); $action = GETPOST('action', 'aZ09'); $confirm = GETPOST('confirm', 'alpha'); $cancel = GETPOST('cancel', 'aZ09'); -$contextpage= GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'bomcard'; // To manage different context of search +$contextpage= GETPOST('contextpage', 'aZ')?GETPOST('contextpage', 'aZ'):'bomcard'; // To manage different context of search $backtopage = GETPOST('backtopage', 'alpha'); // Initialize technical objects @@ -110,7 +110,7 @@ include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be inclu */ $parameters=array(); -$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks +$reshook=$hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); if (empty($reshook)) @@ -154,7 +154,7 @@ if (empty($reshook)) $form=new Form($db); $formfile=new FormFile($db); -llxHeader('','BillOfMaterials',''); +llxHeader('', 'BillOfMaterials', ''); // Example : Adding jquery code print '