Passed
Push — master ( 8cc7a2...36d596 )
by Smoren
13:35 queued 58s
created
src/Structs/Sequence.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,10 +112,10 @@
 block discarded – undo
112 112
         }
113 113
 
114 114
         if ($offset < 0) {
115
-            $offset = $this->size + ($offset % $this->size);
115
+            $offset = $this->size+($offset%$this->size);
116 116
         }
117 117
 
118
-        $offset = ($offset % $this->size);
118
+        $offset = ($offset%$this->size);
119 119
 
120 120
         return $this->getValueByIndex($offset);
121 121
     }
Please login to merge, or discard this patch.
src/Structs/DynamicSequence.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
             return ($this->indexValueGetter)($index, $this->start);
59 59
         }
60 60
 
61
-        return reduce(xrange($index), function ($carry) {
61
+        return reduce(xrange($index), function($carry) {
62 62
             return $this->getNextValue($carry);
63 63
         }, $this->start);
64 64
     }
Please login to merge, or discard this patch.