Test Setup Failed
Pull Request — master (#79)
by
unknown
01:24
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/Map.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -642,15 +642,15 @@
 block discarded – undo
642 642
      */
643 643
     private function compactPairRefs()
644 644
     {
645
-       // Renumber indices from 0 ascending.
646
-       $this->pairRefs = array_slice($this->pairRefs, 0);
647
-       $this->nextPairIndex = count($this->pairRefs);
645
+        // Renumber indices from 0 ascending.
646
+        $this->pairRefs = array_slice($this->pairRefs, 0);
647
+        $this->nextPairIndex = count($this->pairRefs);
648 648
 
649
-       $updateIndex = function(PairRef $pairRef, int $position): void {
650
-          $pairRef->pairIndex = $position;
651
-       };
649
+        $updateIndex = function(PairRef $pairRef, int $position): void {
650
+            $pairRef->pairIndex = $position;
651
+        };
652 652
 
653
-       array_walk($this->pairRefs, $updateIndex);
653
+        array_walk($this->pairRefs, $updateIndex);
654 654
     }
655 655
 
656 656
     /**
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -964,7 +964,8 @@
 block discarded – undo
964 964
  * @template-covariant TKey
965 965
  * @template-covariant TValue
966 966
  */
967
-final class PairRef {
967
+final class PairRef
968
+{
968 969
     /**
969 970
      * @var int
970 971
      */
Please login to merge, or discard this patch.