|
@@ -25,7 +25,7 @@ discard block |
|
|
block discarded – undo |
|
25
|
25
|
|
|
26
|
26
|
public function amountFloat(): float |
|
27
|
27
|
{ |
|
28
|
|
- return (float)($this->amount() / pow(10, $this->currency->config()->decimals())); |
|
|
28
|
+ return (float) ($this->amount() / pow(10, $this->currency->config()->decimals())); |
|
29
|
29
|
} |
|
30
|
30
|
|
|
31
|
31
|
public function currency(): Currency |
|
@@ -35,7 +35,7 @@ discard block |
|
|
block discarded – undo |
|
35
|
35
|
|
|
36
|
36
|
public function formatted(string $thousandsSeparator = ',', string $decimalsSeparator = '.'): string |
|
37
|
37
|
{ |
|
38
|
|
- return $this->currency->value() . ' ' . |
|
|
38
|
+ return $this->currency->value().' '. |
|
39
|
39
|
number_format( |
|
40
|
40
|
$this->amountFloat(), |
|
41
|
41
|
$this->currency->config()->decimals(), |
Please login to merge, or discard this patch.