Fix phpcs

This commit is contained in:
Laurent Destailleur 2019-06-20 13:59:04 +02:00
parent bb9b0d401e
commit 6975e18233
2 changed files with 5 additions and 4 deletions

View File

@ -28,10 +28,11 @@
/** /**
* Check if a value is empty with some options * 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 * @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) function is_empty($var, $allow_false = false, $allow_ws = false)
{ {