Completed
Push — master ( a0a08f...e29dc6 )
by Rudi
28s
created
src/Traits/GenericSequence.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -239,8 +239,12 @@
 block discarded – undo
239 239
     {
240 240
         $n = count($this);
241 241
 
242
-        if ($n < 2) return 0;
243
-        if ($r < 0) return $n - (abs($r) % $n);
242
+        if ($n < 2) {
243
+            return 0;
244
+        }
245
+        if ($r < 0) {
246
+            return $n - (abs($r) % $n);
247
+        }
244 248
 
245 249
         return $r % $n;
246 250
     }
Please login to merge, or discard this patch.
src/Set.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -270,7 +270,8 @@
 block discarded – undo
270 270
      * @psalm-param callable(TValue): TNewValue $callback
271 271
      * @psalm-return Set<TNewValue>
272 272
      */
273
-    public function map(callable $callback) {
273
+    public function map(callable $callback)
274
+    {
274 275
         return new self(array_map($callback, $this->toArray()));
275 276
     }
276 277
 
Please login to merge, or discard this patch.
src/Traits/Capacity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
     {
117 117
         $this->capacity = max(
118 118
             self::MIN_CAPACITY,
119
-            (int) ($this->capacity()  * $this->getDecayFactor())
119
+            (int) ($this->capacity() * $this->getDecayFactor())
120 120
         );
121 121
     }
122 122
 
Please login to merge, or discard this patch.