Completed
Push — master ( 1883bf...af1526 )
by Andreu
02:53 queued 01:24
created
src/Money.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.