Passed
Push — main ( d05083...efdc82 )
by Anatolyi
06:21
created
src/ShiftedNumber.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@
 block discarded – undo
64 64
         $shift = $shift === 0 ? (int)(7 / 100 * $this->max) : $shift;
65 65
 
66 66
         $result = $number + $shift <= $this->max ?
67
-            $number + $shift :
68
-            $this->min + ($number + $shift - $this->max) - 1;
67
+            $number + $shift : $this->min + ($number + $shift - $this->max) - 1;
69 68
 
70 69
         if ($result < $this->min || $result > $this->max) {
71 70
             $float = round(($this->min / ($this->max + 1)) + M_PI, 5);
Please login to merge, or discard this patch.