Failed Conditions
Push — dev ( 8abba3...9fe241 )
by Jordan
24:58 queued 09:57
created
src/Samsara/Fermat/Types/NumberCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function sort(): NumberCollectionInterface
146 146
     {
147
-        $this->getCollection()->sort(function($left, $right){
147
+        $this->getCollection()->sort(function($left, $right) {
148 148
             return ArithmeticProvider::compare($left->getAsBaseTenRealNumber(), $right->getAsBaseTenRealNumber());
149 149
         });
150 150
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      */
278 278
     public function getRandom(): NumberInterface
279 279
     {
280
-        $maxKey = $this->getCollection()->count() - 1;
280
+        $maxKey = $this->getCollection()->count()-1;
281 281
 
282 282
         $key = PolyfillProvider::randomInt(0, $maxKey);
283 283
 
Please login to merge, or discard this patch.
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.