Fix phpcs
This commit is contained in:
parent
7b661e707e
commit
157745a1bb
@ -41,21 +41,21 @@ 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 {
|
||||||
$type = 0;
|
$type = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$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];
|
||||||
$words = array();
|
$words = array();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user