Completed
Branch master (2f1fdf)
by Antonio Manuel Hernández
04:42
created
Category
lib/antonienko/MoneyFormatter/MoneyFormatter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $iso = $this->iso4217->getByAlpha3($money->getCurrency()->getName());
24 24
         $decimals = $iso['exp'];
25
-        $dividend = pow(10,$decimals);
25
+        $dividend = pow(10, $decimals);
26 26
         return $money->getAmount()/$dividend;
27 27
     }
28 28
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $string = $this->toStringByLocale($locale, $money);
38 38
         $symbol = preg_replace('/[0-9., ]*/iu', '', $string);
39 39
         if ($justSymbol) {
40
-            $symbol_tmp = preg_replace('/[a-z]+/iu','',$symbol);
40
+            $symbol_tmp = preg_replace('/[a-z]+/iu', '', $symbol);
41 41
             if ('' != $symbol_tmp) {
42 42
                 $symbol = $symbol_tmp;
43 43
             }
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $money = new Money(1, $currency);
56 56
         $number_formatter = $this->toStringByLocale($locale, $money);
57
-        $symbol = $this->getSymbol($locale,$money);
57
+        $symbol = $this->getSymbol($locale, $money);
58 58
 
59
-        if(strpos($number_formatter,$symbol) === 0) {
59
+        if (strpos($number_formatter, $symbol) === 0) {
60 60
             return self::SYMBOL_POSITION_LEFT;
61 61
         }
62 62
 
63
-        if(strpos($number_formatter,$symbol) === mb_strlen($number_formatter, 'UTF-8')) {
63
+        if (strpos($number_formatter, $symbol) === mb_strlen($number_formatter, 'UTF-8')) {
64 64
             return self::SYMBOL_POSITION_RIGHT;
65 65
         }
66 66
         throw new \Exception('Symbol position not found');
Please login to merge, or discard this patch.