@@ -34,7 +34,7 @@ |
||
| 34 | 34 | string $currency, bool $isValid, ?int $iso, ?int $decimals |
| 35 | 35 | ): void |
| 36 | 36 | { |
| 37 | - if(!$isValid) { |
|
| 37 | + if (!$isValid) { |
|
| 38 | 38 | $this->expectException(\InvalidArgumentException::class); |
| 39 | 39 | $this->expectExceptionMessage("$currency is not an allowed currency"); |
| 40 | 40 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 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 |
||
| 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(), |