Completed
Push — master ( d5a821...790b7c )
by Rudi
02:20
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/Sequence.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@  discard block
 block discarded – undo
13 13
      * object. The keys of either will not be preserved.
14 14
      *
15 15
      * @param array|\Traversable $values
16
+     * @return void
16 17
      */
17 18
     function __construct($values = null);
18 19
 
@@ -23,6 +24,7 @@  discard block
 block discarded – undo
23 24
      * @param int $capacity The number of values for which capacity should be
24 25
      *                      allocated. Capacity will stay the same if this value
25 26
      *                      is less than or equal to the current capacity.
27
+     * @return void
26 28
      */
27 29
     function allocate(int $capacity);
28 30
 
@@ -94,6 +96,7 @@  discard block
 block discarded – undo
94 96
      * @param mixed ...$values
95 97
      *
96 98
      * @throws \OutOfRangeException if the index is not in the range [0, n]
99
+     * @return void
97 100
      */
98 101
     function insert(int $index, ...$values);
99 102
 
@@ -148,6 +151,7 @@  discard block
 block discarded – undo
148 151
      * Adds zero or more values to the end of the sequence.
149 152
      *
150 153
      * @param mixed ...$values
154
+     * @return void
151 155
      */
152 156
     function push(...$values);
153 157
 
@@ -155,6 +159,7 @@  discard block
 block discarded – undo
155 159
      * Adds all values in an array or iterable object to the sequence.
156 160
      *
157 161
      * @param array|\Traversable $values
162
+     * @return void
158 163
      */
159 164
     function pushAll($values);
160 165
 
@@ -195,6 +200,7 @@  discard block
 block discarded – undo
195 200
      * positive, or 'pop' and 'unshift' if negative.
196 201
      *
197 202
      * @param int $rotations The number of rotations (can be negative).
203
+     * @return void
198 204
      */
199 205
     function rotate(int $rotations);
200 206
 
@@ -205,6 +211,7 @@  discard block
 block discarded – undo
205 211
      * @param mixed $value
206 212
      *
207 213
      * @throws \OutOfRangeException if the index is not in the range [0, size-1]
214
+     * @return void
208 215
      */
209 216
     function set(int $index, $value);
210 217
 
@@ -255,6 +262,7 @@  discard block
 block discarded – undo
255 262
      * Adds zero or more values to the front of the sequence.
256 263
      *
257 264
      * @param mixed ...$values
265
+     * @return void
258 266
      */
259 267
     function unshift(...$values);
260 268
 }
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 1 patch
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.