From 040d22ef0a2b3ead1ec0595fd8820aabe67fc1d4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 4 Dec 2020 01:59:47 +0100 Subject: [PATCH] Fix phpcs --- htdocs/commande/card.php | 2 +- htdocs/core/class/html.form.class.php | 2 +- scripts/emailings/reset-invalid-emails.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index c4c45df4bc7..80ff2180801 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -920,7 +920,7 @@ if (empty($reshook)) if ($result > 0) { $ret = $object->fetch($object->id); // Reload to get new records $object->fetch_thirdparty(); - + if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) { // Define output language $outputlangs = $langs; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index eed09e3c92c..00bfd60e4ad 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1492,7 +1492,7 @@ class Form } if ($htmlname != 'none' && !$options_only) { - $out .= ''; } if (($showempty == 1 || ($showempty == 3 && $num > 1)) && !$multiple) $out .= ''; diff --git a/scripts/emailings/reset-invalid-emails.php b/scripts/emailings/reset-invalid-emails.php index c66f6082a9f..bc35f0f4240 100755 --- a/scripts/emailings/reset-invalid-emails.php +++ b/scripts/emailings/reset-invalid-emails.php @@ -96,7 +96,7 @@ while ($tmp != null) // Generate the string tp allow a mass update (with a limit of MAXEMAILS per request). $emailsin = ''; - foreach($groupofemails as $email) { + foreach ($groupofemails as $email) { $emailsin .= ($emailsin ? ", " : "")."'".$db->escape($email)."'"; }