From 4fd970af28ecba49550ff36733d5a8c55513b499 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 7 Jul 2020 01:29:31 +0200 Subject: [PATCH] Fix phpcs --- htdocs/admin/emailcollector_list.php | 2 +- htdocs/bom/class/bom.class.php | 2 +- htdocs/comm/propal/card.php | 2 +- htdocs/commande/card.php | 2 +- htdocs/compta/facture/card.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/admin/emailcollector_list.php b/htdocs/admin/emailcollector_list.php index d2babfeaf5c..451b92c599f 100644 --- a/htdocs/admin/emailcollector_list.php +++ b/htdocs/admin/emailcollector_list.php @@ -209,7 +209,7 @@ $sql .= $hookmanager->resPrint; /* If a group by is required $sql.= " GROUP BY " -foreach($object->fields as $key => $val) +foreach ($object->fields as $key => $val) { $sql.='t.'.$key.', '; } diff --git a/htdocs/bom/class/bom.class.php b/htdocs/bom/class/bom.class.php index e74860e1a38..4a1c4e2f179 100644 --- a/htdocs/bom/class/bom.class.php +++ b/htdocs/bom/class/bom.class.php @@ -251,7 +251,7 @@ class BOM extends CommonObject if ($result > 0 && !empty($object->table_element_line)) $object->fetchLines(); // Get lines so they will be clone - //foreach($object->lines as $line) + //foreach ($object->lines as $line) // $line->fetch_optionals(); // Reset some properties diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php index b818fde5c5c..56174b693a1 100644 --- a/htdocs/comm/propal/card.php +++ b/htdocs/comm/propal/card.php @@ -781,7 +781,7 @@ if (empty($reshook)) $vat_rate = str_replace('*', '', $vat_rate); $localtax1_rate = get_localtax($vat_rate, 1, $object->thirdparty, $mysoc); $localtax2_rate = get_localtax($vat_rate, 2, $object->thirdparty, $mysoc); - foreach($object->lines as $line) { + foreach ($object->lines as $line) { $result = $object->updateline($line->id, $line->subprice, $line->qty, $line->remise_percent, $vat_rate, $localtax1_rate, $localtax2_rate, $line->desc, 'HT', $line->info_bits, $line->special_code, $line->fk_parent_line, 0, $line->fk_fournprice, $line->pa_ht, $line->label, $line->product_type, $line->date_start, $line->date_end, $line->array_options, $line->fk_unit, $line->multicurrency_subprice); } } elseif ($action == 'addline' && $usercancreate) { // Add line diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index becaaf2b6bf..ab3aa443642 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -630,7 +630,7 @@ if (empty($reshook)) $vat_rate = str_replace('*', '', $vat_rate); $localtax1_rate = get_localtax($vat_rate, 1, $object->thirdparty, $mysoc); $localtax2_rate = get_localtax($vat_rate, 2, $object->thirdparty, $mysoc); - foreach($object->lines as $line) { + foreach ($object->lines as $line) { $result = $object->updateline($line->id, $line->desc, $line->subprice, $line->qty, $line->remise_percent, $vat_rate, $localtax1_rate, $localtax2_rate, 'HT', $line->info_bits, $line->date_start, $line->date_end, $line->product_type, $line->fk_parent_line, 0, $line->fk_fournprice, $line->pa_ht, $line->label, $line->special_code, $line->array_options, $line->fk_unit, $line->multicurrency_subprice); } } elseif ($action == 'addline' && $usercancreate) // Add a new line diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 5bd4f3345e2..3d06f665e22 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -1873,7 +1873,7 @@ if (empty($reshook)) $vat_rate = str_replace('*', '', $vat_rate); $localtax1_rate = get_localtax($vat_rate, 1, $object->thirdparty, $mysoc); $localtax2_rate = get_localtax($vat_rate, 2, $object->thirdparty, $mysoc); - foreach($object->lines as $line) { + foreach ($object->lines as $line) { $result = $object->updateline($line->id, $line->desc, $line->subprice, $line->qty, $line->remise_percent, $line->date_start, $line->date_end, $vat_rate, $localtax1_rate, $localtax2_rate, 'HT', $line->info_bits, $line->product_type, $line->fk_parent_line, 0, $line->fk_fournprice, $line->pa_ht, $line->label, $line->special_code, $line->array_options, $line->situation_percent, $line->fk_unit, $line->multicurrency_subprice); } } elseif ($action == 'addline' && $usercancreate) // Add a new line