Some code cleanup.

This commit is contained in:
James Cole
2016-10-07 05:44:21 +02:00
parent 3c5f9487a8
commit 49af6522a8
14 changed files with 59 additions and 54 deletions

View File

@@ -41,7 +41,7 @@ class Amount extends BasicConverter implements ConverterInterface
}
if ($len > 2 && $value{$decimalPosition} == ',') {
$decimal = ',';
}
}
// if decimal is dot, replace all comma's and spaces with nothing. then parse as float (round to 4 pos)
if ($decimal === '.') {