Test Failed
Push — master ( ff1e94...12fe3f )
by Gabriel
15:20
created
src/functions/general.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@
 block discarded – undo
49 49
                 'nosimbol' => preg_match('/\!/', $fmatch[1]) > 0,
50 50
                 'isleft' => preg_match('/\-/', $fmatch[1]) > 0,
51 51
             ];
52
-            $width = trim($fmatch[2]) ? (int)$fmatch[2] : 0;
53
-            $left = trim($fmatch[3]) ? (int)$fmatch[3] : 0;
54
-            $right = trim($fmatch[4]) ? (int)$fmatch[4] : $locale['int_frac_digits'];
52
+            $width = trim($fmatch[2]) ? (int) $fmatch[2] : 0;
53
+            $left = trim($fmatch[3]) ? (int) $fmatch[3] : 0;
54
+            $right = trim($fmatch[4]) ? (int) $fmatch[4] : $locale['int_frac_digits'];
55 55
             $conversion = $fmatch[5];
56 56
 
57 57
             $positive = true;
Please login to merge, or discard this patch.
src/Traits/MoneyParserTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         throw new InvalidArgumentException(sprintf('Invalid value: %s', json_encode($value)));
67 67
     }
68 68
 
69
-    protected static function parseNonFloatStrings($value,$currency = null, $bitCointDigits = 2)
69
+    protected static function parseNonFloatStrings($value, $currency = null, $bitCointDigits = 2)
70 70
     {
71 71
         $locale = static::getLocale();
72 72
         $currencies = static::getCurrencies();
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     {
131 131
         $parser = new DecimalMoneyParser($currencies ?: static::getCurrencies());
132 132
 
133
-        return static::parseByParser($parser,(string) $money, $forceCurrency);
133
+        return static::parseByParser($parser, (string) $money, $forceCurrency);
134 134
     }
135 135
 
136 136
     /**
Please login to merge, or discard this patch.
src/MoneyServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,20 +41,20 @@
 block discarded – undo
41 41
 
42 42
     protected function registerCurrencies()
43 43
     {
44
-        $this->getContainer()->share(self::MONEY_CURRENCIES, function () {
44
+        $this->getContainer()->share(self::MONEY_CURRENCIES, function() {
45 45
             return new ISOCurrencies();
46 46
         });
47 47
     }
48 48
 
49 49
     protected function registerCurrency()
50 50
     {
51
-        $this->getContainer()->share('money.currency', function () {
51
+        $this->getContainer()->share('money.currency', function() {
52 52
         });
53 53
     }
54 54
 
55 55
     protected function registerFormatter()
56 56
     {
57
-        $this->getContainer()->share('money.formatter', function () {
57
+        $this->getContainer()->share('money.formatter', function() {
58 58
             return Manager::instance();
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
src/Models/Currencies/CurrencyTrait.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -31,20 +31,20 @@
 block discarded – undo
31 31
         $integerValue = floor($amount);
32 32
         $decimalValue = round(($amount - $integerValue) * 100);
33 33
 
34
-        $intHTML = '<span class="money-int">'.number_format($integerValue).'</span>';
34
+        $intHTML = '<span class="money-int">' . number_format($integerValue) . '</span>';
35 35
 
36 36
         $decimalValue = str_pad(strval($decimalValue), 2, '0', STR_PAD_LEFT);
37
-        $decimalHTML = '<sup class="money-decimal">.'.$decimalValue.'</sup>';
37
+        $decimalHTML = '<sup class="money-decimal">.' . $decimalValue . '</sup>';
38 38
 
39
-        $return = $intHTML.$decimalHTML;
39
+        $return = $intHTML . $decimalHTML;
40 40
 
41
-        $symbolHTML = '<span class="money-currency">'.$this->symbol.'</span>';
41
+        $symbolHTML = '<span class="money-currency">' . $this->symbol . '</span>';
42 42
         if ($this->position == 'before') {
43
-            $return = $symbolHTML.' '.$amount;
43
+            $return = $symbolHTML . ' ' . $amount;
44 44
         } else {
45
-            $return .= ' '.$symbolHTML;
45
+            $return .= ' ' . $symbolHTML;
46 46
         }
47 47
 
48
-        return '<span class="price" content="'.number_format($amount,2,'.','').'">'.$return.'</span>';
48
+        return '<span class="price" content="' . number_format($amount, 2, '.', '') . '">' . $return . '</span>';
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
src/Utility/PackageConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
      */
28 28
     public static function defaultCurrency($default = null): ?string
29 29
     {
30
-        return (string)static::instance()->get('money.defaultCurrency', $default);
30
+        return (string) static::instance()->get('money.defaultCurrency', $default);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.