Completed
Push — master ( 790b7c...67857d )
by Rudi
02:56
created
src/Map.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * Should an integer be provided the Map will allocate the memory capacity
30 30
      * to the size of $values.
31 31
      *
32
-     * @param array|\Traversable|int|null $values
32
+     * @param Map $values
33 33
      */
34 34
     public function __construct($values = null)
35 35
     {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     /**
123 123
      * Merge an array of values with the current Map
124 124
      *
125
-     * @param array|\Traversable $values
125
+     * @param Map $values
126 126
      *
127 127
      * @return Map
128 128
      */
Please login to merge, or discard this patch.
src/Set.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * Should an integer be provided the Set will allocate the memory capacity
31 31
      * to the size of $values.
32 32
      *
33
-     * @param array|\Traversable|int|null $values
33
+     * @param Set $values
34 34
      */
35 35
     public function __construct($values = null)
36 36
     {
Please login to merge, or discard this patch.
src/Traits/Sequence.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -260,9 +260,9 @@
 block discarded – undo
260 260
         $r = $this->normalizeRotations($rotations, $n);
261 261
 
262 262
         if ($r > 0) {
263
-            $this->reverseRange(0,  $r);
263
+            $this->reverseRange(0, $r);
264 264
             $this->reverseRange($r, $n);
265
-            $this->reverseRange(0,  $n);
265
+            $this->reverseRange(0, $n);
266 266
         }
267 267
     }
268 268
 
Please login to merge, or discard this patch.
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 Error;
5 4
 use OutOfRangeException;
6 5
 use Traversable;
7 6
 use UnderflowException;
Please login to merge, or discard this patch.
src/Sequence.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@  discard block
 block discarded – undo
13 13
      * object as initial values, or an int to specify an initial capacity.
14 14
      *
15 15
      * @param array|\Traversable|int|null $values
16
+     * @return void
16 17
      */
17 18
     function __construct($values = null);
18 19
 
@@ -22,6 +23,7 @@  discard block
 block discarded – undo
22 23
      * @param int $capacity The number of values for which capacity should be
23 24
      *                      allocated. Capacity will stay the same if this value
24 25
      *                      is less than or equal to the current capacity.
26
+     * @return void
25 27
      */
26 28
     function allocate(int $capacity);
27 29
 
@@ -93,6 +95,7 @@  discard block
 block discarded – undo
93 95
      * @param mixed ...$values
94 96
      *
95 97
      * @throws \OutOfRangeException if the index is not in the range [0, n]
98
+     * @return void
96 99
      */
97 100
     function insert(int $index, ...$values);
98 101
 
@@ -147,6 +150,7 @@  discard block
 block discarded – undo
147 150
      * Adds zero or more values to the end of the sequence.
148 151
      *
149 152
      * @param mixed ...$values
153
+     * @return void
150 154
      */
151 155
     function push(...$values);
152 156
 
@@ -187,6 +191,7 @@  discard block
 block discarded – undo
187 191
      * positive, or 'pop' and 'unshift' if negative.
188 192
      *
189 193
      * @param int $rotations The number of rotations (can be negative).
194
+     * @return void
190 195
      */
191 196
     function rotate(int $rotations);
192 197
 
@@ -197,6 +202,7 @@  discard block
 block discarded – undo
197 202
      * @param mixed $value
198 203
      *
199 204
      * @throws \OutOfRangeException if the index is not in the range [0, size-1]
205
+     * @return void
200 206
      */
201 207
     function set(int $index, $value);
202 208
 
@@ -247,6 +253,7 @@  discard block
 block discarded – undo
247 253
      * Adds zero or more values to the front of the sequence.
248 254
      *
249 255
      * @param mixed ...$values
256
+     * @return void
250 257
      */
251 258
     function unshift(...$values);
252 259
 }
Please login to merge, or discard this patch.