Failed Conditions
Push — dev ( 51d7f8...8abba3 )
by Jordan
13:12
created
src/Samsara/Fermat/Types/Decimal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             $value = $this->convertValue($value, $base, 10);
42 42
         }
43 43
 
44
-        $value = (string)$value;
44
+        $value = (string) $value;
45 45
         $this->value = $this->translateValue($value);
46 46
 
47 47
         if (!is_null($precision)) {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             $this->precision = ($precision > strlen($this->getDecimalPart())) ? $precision : strlen($this->getDecimalPart());
57 57
         } else {
58 58
             $checkVal = $this->getDecimalPart();
59
-            $checkVal = trim($checkVal,'0');
59
+            $checkVal = trim($checkVal, '0');
60 60
 
61 61
             if (strlen($checkVal) > 0) {
62 62
                 $this->precision = (strlen($this->getDecimalPart()) > 10) ? strlen($this->getDecimalPart()) : 10;
Please login to merge, or discard this patch.
src/Samsara/Fermat/Types/Traits/PrecisionTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
                 $rounded = $whole.'.';
50 50
 
51
-                for ($i = 0;$i < $decimals;$i++) {
51
+                for ($i = 0; $i < $decimals; $i++) {
52 52
                     $rounded .= $fractionalArr[$i];
53 53
                 }
54 54
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $total = strlen($fractional);
131 131
         $fractional = ltrim($fractional, '0');
132 132
 
133
-        return ($total - strlen($fractional));
133
+        return ($total-strlen($fractional));
134 134
     }
135 135
 
136 136
     /**
Please login to merge, or discard this patch.
src/Samsara/Fermat/Types/Traits/ComparisonTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,9 +216,9 @@
 block discarded – undo
216 216
 
217 217
         if ($check == 1) {
218 218
             $checkVal = $this->getDecimalPart();
219
-            $checkVal = trim($checkVal,'0');
219
+            $checkVal = trim($checkVal, '0');
220 220
 
221
-            if (strlen($checkVal) > 0 ) {
221
+            if (strlen($checkVal) > 0) {
222 222
                 return false;
223 223
             } else {
224 224
                 return true;
Please login to merge, or discard this patch.