From af4a975be2eed95a79ba9af5bfa9f1ad6db266c6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 Apr 2016 19:50:13 +0200 Subject: [PATCH] Fix PHPCS --- htdocs/core/filemanagerdol/connectors/php/io.php | 16 ++++++++++++---- htdocs/core/lib/functionsnumtoword.lib.php | 11 +++++++---- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/htdocs/core/filemanagerdol/connectors/php/io.php b/htdocs/core/filemanagerdol/connectors/php/io.php index b39a8cfbc94..72aea0e0eb0 100644 --- a/htdocs/core/filemanagerdol/connectors/php/io.php +++ b/htdocs/core/filemanagerdol/connectors/php/io.php @@ -21,9 +21,13 @@ * * This is the File Manager Connector for PHP. */ + /** - * @param string $sBasePath - * @param string $sFolder + * CombinePaths + * + * @param string $sBasePath sBasePath + * @param string $sFolder sFolder + * @return string Combined path */ function CombinePaths( $sBasePath, $sFolder ) { @@ -385,8 +389,12 @@ EOF; // This is the function that sends the results of the uploading process to CKE. /** - * @param string $callback - * @param string $sFileUrl + * SendCKEditorResults + * + * @param string $callback callback + * @param string $sFileUrl sFileUrl + * @param string $customMsg customMsg + * @return void */ function SendCKEditorResults ($callback, $sFileUrl, $customMsg = '') { diff --git a/htdocs/core/lib/functionsnumtoword.lib.php b/htdocs/core/lib/functionsnumtoword.lib.php index 3472c846366..24a7cd86e47 100644 --- a/htdocs/core/lib/functionsnumtoword.lib.php +++ b/htdocs/core/lib/functionsnumtoword.lib.php @@ -110,11 +110,14 @@ function dolNumberToWord($numero, $langs, $numorcurrency='number') } /** - * @param integer $hundreds - * @param integer $tens - * @param integer $units + * hundreds2text + * + * @param integer $hundreds Hundreds + * @param integer $tens Tens + * @param integer $units Units */ -function hundreds2text ($hundreds, $tens, $units){ +function hundreds2text($hundreds, $tens, $units) +{ if ($hundreds==1 && $tens==0 && $units==0){ return "CIEN"; }