@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Adsmurai\Currency; |
6 | 6 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | 1 === \preg_match(self::getAmountPlusIsoCodePattern($currency), $amount, $matches) || |
79 | 79 | 1 === \preg_match(self::getAmountPlusSymbolPattern($currency), $amount, $matches) |
80 | 80 | ) { |
81 | - return Decimal::fromString($matches['amount'], self::INNER_FRACTIONAL_DIGITS); |
|
81 | + return Decimal::fromString($matches[ 'amount' ], self::INNER_FRACTIONAL_DIGITS); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | throw new InvalidArgumentException('Invalid currency value'); |