Fix phpcs

This commit is contained in:
Laurent Destailleur 2020-06-30 13:20:46 +02:00
parent 88cf904ced
commit 4baa00ba89
2 changed files with 5 additions and 11 deletions

View File

@ -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)

View File

@ -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);
}
}