Passed
Pull Request — main (#2)
by Anatolyi
11:33
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.
src/Game/SeedPairGenerator.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@
 block discarded – undo
34 34
 
35 35
         if ($clientSeed === null) {
36 36
             $clientSeed = $seedPair ?
37
-                $seedPair->getClientSeed() :
38
-                Random::getString(16, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
37
+                $seedPair->getClientSeed() : Random::getString(16, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');
39 38
         }
40 39
 
41 40
         $nonce = 1; // each new generation resets nonce
Please login to merge, or discard this patch.