Fix phpcs

This commit is contained in:
Laurent Destailleur 2020-02-04 14:18:37 +01:00
parent 7b661e707e
commit 157745a1bb

View File

@ -41,11 +41,12 @@ function dol_convertToWord($num, $langs, $currency = false, $centimes = false)
if (! $num) { if (! $num) {
return false; return false;
} }
if ($centimes && strlen($num) == 1) { if ($centimes && strlen($num) == 1) {
$num = $num*10; $num = $num*10;
} }
if (! empty($conf->global->MAIN_MODULE_NUMBERWORDS)) {
if (! empty($conf->global->MAIN_MODULE_NUMBERWORDS)) {
if ($currency == true) { if ($currency == true) {
$type = 1; $type = 1;
} else { } else {
@ -54,7 +55,6 @@ function dol_convertToWord($num, $langs, $currency = false, $centimes = false)
$concatWords = $langs->getLabelFromNumber($num, $type); $concatWords = $langs->getLabelFromNumber($num, $type);
return $concatWords; return $concatWords;
} else { } else {
$TNum = explode('.', $num); $TNum = explode('.', $num);
$num = (int) $TNum[0]; $num = (int) $TNum[0];