From 4baa00ba89730a76b641c9e150da8ebb9cf8d7f6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 30 Jun 2020 13:20:46 +0200 Subject: [PATCH] Fix phpcs --- htdocs/core/class/ldap.class.php | 2 +- htdocs/product/stock/stockatdate.php | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php index 17e1429a563..9d613455cfe 100644 --- a/htdocs/core/class/ldap.class.php +++ b/htdocs/core/class/ldap.class.php @@ -444,7 +444,7 @@ class Ldap * * @param string $dn DN entry key * @param array $info Attributes array - * @param User $user Objet user that modify + * @param User $user Objet user that modify * @return int <0 if KO, >0 if OK */ public function modify($dn, $info, $user) diff --git a/htdocs/product/stock/stockatdate.php b/htdocs/product/stock/stockatdate.php index 2e1a418c732..03a8a8538aa 100644 --- a/htdocs/product/stock/stockatdate.php +++ b/htdocs/product/stock/stockatdate.php @@ -128,8 +128,7 @@ if ($date) { // Avoid heavy sql if mandatory date is not defined $num = $db->num_rows($resql); $i = 0; - while($i < $num) - { + while ($i < $num) { $obj = $db->fetch_object($resql); $tmp_fk_product = $obj->fk_product; @@ -143,9 +142,7 @@ if ($date) { // Avoid heavy sql if mandatory date is not defined } $db->free($resql); - } - else - { + } else { dol_print_error($db); } //var_dump($stock_prod_warehouse); @@ -182,8 +179,7 @@ if ($date) { $num = $db->num_rows($resql); $i = 0; - while($i < $num) - { + while ($i < $num) { $obj = $db->fetch_object($resql); $fk_product = $obj->fk_product; $fk_entrepot = $obj->fk_entrepot; @@ -199,9 +195,7 @@ if ($date) { } $db->free($resql); - } - else - { + } else { dol_print_error($db); } }