Passed
Pull Request — master (#136)
by Jordan
07:01
created
src/Samsara/Fermat/Provider/RoundingProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             $roundedPartString = $wholePart;
141 141
             $otherPart = str_split($decimalPart);
142 142
             $baseLength = strlen($wholePart);
143
-            $pos = ($absPlaces >= $baseLength) ? 0 : $baseLength + $places;
143
+            $pos = ($absPlaces >= $baseLength) ? 0 : $baseLength+$places;
144 144
         }
145 145
 
146 146
         return [
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         bool $currentPart
215 215
     ): array
216 216
     {
217
-        $digit = (int)$roundedPart[$pos] + $carry;
217
+        $digit = (int)$roundedPart[$pos]+$carry;
218 218
 
219 219
         if ($carry == 0 && $digit == 5 && strlen($roundedPartString) > $pos+1) {
220 220
             $remainder = substr($roundedPartString, $pos+1);
Please login to merge, or discard this patch.