From ff0f6295d8bcd46e25b94c65cecdce97a707f377 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 20 Jun 2019 13:59:53 +0200 Subject: [PATCH] Fix phpcs --- htdocs/core/lib/accounting.lib.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/htdocs/core/lib/accounting.lib.php b/htdocs/core/lib/accounting.lib.php index c50ee1be869..9545b6961fd 100644 --- a/htdocs/core/lib/accounting.lib.php +++ b/htdocs/core/lib/accounting.lib.php @@ -25,14 +25,15 @@ */ - /** - * 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 - */ +/** + * Check if a value is empty with some options + * + * @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) { if (!isset($var) || is_null($var) || ($allow_ws == false && trim($var) == "" && !is_bool($var)) || ($allow_false === false && is_bool($var) && $var === false) || (is_array($var) && empty($var))) {