Passed
Push — dev ( c3b672...0c0d88 )
by Jordan
04:34 queued 03:46
created
src/Samsara/Fermat/Types/Traits/Decimal/ScaleTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
                 $rounded = $whole.'.';
57 57
 
58
-                for ($i = 0;$i < $decimals;$i++) {
58
+                for ($i = 0; $i < $decimals; $i++) {
59 59
                     $rounded .= $fractionalArr[$i];
60 60
                 }
61 61
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         $total = strlen($fractional);
144 144
         $fractional = ltrim($fractional, '0');
145 145
 
146
-        return ($total - strlen($fractional));
146
+        return ($total-strlen($fractional));
147 147
     }
148 148
 
149 149
     /**
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     public function isFloat(): bool
230 230
     {
231 231
 
232
-        return (bool)ArithmeticProvider::compare($this->getDecimalPart(), '0');
232
+        return (bool) ArithmeticProvider::compare($this->getDecimalPart(), '0');
233 233
 
234 234
     }
235 235
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
             );
245 245
         }
246 246
 
247
-        return (float)$this->asReal();
247
+        return (float) $this->asReal();
248 248
 
249 249
     }
250 250
 
Please login to merge, or discard this patch.