From aeb5f5e4f3cfdef8f357eb6a87e08205e2fc108b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 10 Jul 2018 13:56:03 +0200 Subject: [PATCH] Fix phpcs --- htdocs/core/lib/functions.lib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 2cd5ab607ce..f5cef250060 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -276,7 +276,7 @@ function GETPOSTISSET($paramname) * @param string $noreplace Force disable of replacement of __xxx__ strings. * @return string|string[] Value found (string or array), or '' if check fails */ -function GETPOST($paramname, $check='none', $method=0, $filter=NULL, $options=NULL, $noreplace=0) +function GETPOST($paramname, $check='none', $method=0, $filter=null, $options=null, $noreplace=0) { global $mysoc,$user,$conf; @@ -5070,6 +5070,7 @@ function dol_string_onlythesehtmltags($stringtoclean) * Clean a string from some undesirable HTML tags. * * @param string $stringtoclean String to clean + * @param array $disallowed_tags Array of tags not allowed * @return string String cleaned * * @see dol_escape_htmltag strip_tags dol_string_nohtmltag dol_string_onlythesehtmltags @@ -6147,7 +6148,7 @@ function dol_sort_array(&$array, $index, $order='asc', $natsort=0, $case_sensiti else { ($case_sensitive) ? natsort($temp) : natcasesort($temp); - if($order!='asc') $temp=array_reverse($temp,TRUE); + if($order!='asc') $temp=array_reverse($temp,true); } $sorted = array();