Completed
Push — master ( 914c2c...907858 )
by Rudi
03:08
created
src/Map.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
     /**
122 122
      * Merge an array of values with the current Map
123 123
      *
124
-     * @param array|\Traversable $values
124
+     * @param Map $values
125 125
      *
126 126
      * @return Map
127 127
      */
Please login to merge, or discard this patch.
src/Traits/GenericSequence.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Ds\Traits;
3 3
 
4
-use Ds\Collection;
5 4
 use Ds\Sequence;
6 5
 use OutOfRangeException;
7 6
 use UnderflowException;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
             throw new UnderflowException();
150 150
         }
151 151
 
152
-        return $this->array[ count($this) - 1];
152
+        return $this->array[count($this) - 1];
153 153
     }
154 154
 
155 155
     /**
Please login to merge, or discard this 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.