| Conditions | 4 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function setValue($value, $data = null) |
||
| 27 | { |
||
| 28 | // otherwise values like 84.4 will be interpreted as 844.00 |
||
| 29 | if ($value !== null && is_float($value) && strlen($value)) { |
||
| 30 | $value = number_format($value, 2, $this->getCurrencyDecimalSeparator(), ""); |
||
| 31 | } |
||
| 32 | return parent::setValue($value, $data); |
||
| 33 | } |
||
| 45 |