From 6975e182331d76190fd58873094dfcd8f7b0015f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 20 Jun 2019 13:59:04 +0200 Subject: [PATCH] Fix phpcs --- htdocs/core/lib/accounting.lib.php | 7 ++++--- htdocs/product/list.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/core/lib/accounting.lib.php b/htdocs/core/lib/accounting.lib.php index c50ee1be869..9619bee580f 100644 --- a/htdocs/core/lib/accounting.lib.php +++ b/htdocs/core/lib/accounting.lib.php @@ -28,10 +28,11 @@ /** * Check if a value is empty with some options * - * @param allow_false : setting this to true will make the function consider a boolean value of false as NOT empty. This parameter is false by default. - * @param allow_ws : setting this to true will make the function consider a string with nothing but white space as NOT empty. This parameter is false by default. - * @return array Bool * @author Michael - https://www.php.net/manual/fr/function.empty.php#90767 + * @param mixed $var Value to test + * @param int|null $allow_false Setting this to true will make the function consider a boolean value of false as NOT empty. This parameter is false by default. + * @param int|null $allow_ws Setting this to true will make the function consider a string with nothing but white space as NOT empty. This parameter is false by default. + * @return boolean True of False */ function is_empty($var, $allow_false = false, $allow_ws = false) { diff --git a/htdocs/product/list.php b/htdocs/product/list.php index 5e348c2fe70..7d766452186 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -1002,7 +1002,7 @@ if ($resql) if (! empty($arrayfields['p.tva_tx']['checked'])) { print ''; - print vatrate($obj->tva_tx,true); + print vatrate($obj->tva_tx, true); print ''; if (! $i) $totalarray['nbfield']++; }