Completed
Push — master ( 8d1df5...05ea10 )
by Rudi
03:16
created
src/Map.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * Creates an instance using the values of an array or Traversable object.
28 28
      *
29
-     * @param array|\Traversable|null $values
29
+     * @param Map $values
30 30
      */
31 31
     public function __construct($values = null)
32 32
     {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     /**
113 113
      * Merge an array of values with the current Map
114 114
      *
115
-     * @param array|\Traversable $values
115
+     * @param Map $values
116 116
      *
117 117
      * @return Map
118 118
      */
Please login to merge, or discard this patch.
src/Sequence.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@  discard block
 block discarded – undo
13 13
      * object as initial values.
14 14
      *
15 15
      * @param array|\Traversable|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
 
@@ -30,6 +32,7 @@  discard block
 block discarded – undo
30 32
      * return value as the new value.
31 33
      *
32 34
      * @param callable $callback Accepts the value, returns the new value.
35
+     * @return void
33 36
      */
34 37
     function apply(callable $callback);
35 38
 
@@ -101,6 +104,7 @@  discard block
 block discarded – undo
101 104
      * @param mixed ...$values
102 105
      *
103 106
      * @throws \OutOfRangeException if the index is not in the range [0, n]
107
+     * @return void
104 108
      */
105 109
     function insert(int $index, ...$values);
106 110
 
@@ -155,6 +159,7 @@  discard block
 block discarded – undo
155 159
      * Adds zero or more values to the end of the sequence.
156 160
      *
157 161
      * @param mixed ...$values
162
+     * @return void
158 163
      */
159 164
     function push(...$values);
160 165
 
@@ -184,6 +189,7 @@  discard block
 block discarded – undo
184 189
 
185 190
     /**
186 191
      * Reverses the sequence in-place.
192
+     * @return void
187 193
      */
188 194
     function reverse();
189 195
 
@@ -200,6 +206,7 @@  discard block
 block discarded – undo
200 206
      * positive, or 'pop' and 'unshift' if negative.
201 207
      *
202 208
      * @param int $rotations The number of rotations (can be negative).
209
+     * @return void
203 210
      */
204 211
     function rotate(int $rotations);
205 212
 
@@ -210,6 +217,7 @@  discard block
 block discarded – undo
210 217
      * @param mixed $value
211 218
      *
212 219
      * @throws \OutOfRangeException if the index is not in the range [0, size-1]
220
+     * @return void
213 221
      */
214 222
     function set(int $index, $value);
215 223
 
@@ -251,6 +259,7 @@  discard block
 block discarded – undo
251 259
      *
252 260
      * @param callable|null $comparator Accepts two values to be compared.
253 261
      *                                  Should return the result of a <=> b.
262
+     * @return void
254 263
      */
255 264
     function sort(callable $comparator = null);
256 265
 
@@ -276,6 +285,7 @@  discard block
 block discarded – undo
276 285
      * Adds zero or more values to the front of the sequence.
277 286
      *
278 287
      * @param mixed ...$values
288
+     * @return void
279 289
      */
280 290
     function unshift(...$values);
281 291
 }
Please login to merge, or discard this patch.
src/Traits/Sequence.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Ds\Traits;
3 3
 
4 4
 use OutOfRangeException;
5
-use Traversable;
6 5
 use UnderflowException;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.