@@ -13,6 +13,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | * Returns the result of associating all keys of a given traversable object |
| 113 | 113 | * or array with their corresponding values, as well as those of this map. |
| 114 | 114 | * |
| 115 | - * @param array|\Traversable $values |
|
| 115 | + * @param Map $values |
|
| 116 | 116 | * |
| 117 | 117 | * @return Map |
| 118 | 118 | */ |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * @return the structures growth factor. |
|
| 40 | + * @return double structures growth factor. |
|
| 41 | 41 | */ |
| 42 | 42 | protected function getGrowthFactor(): float |
| 43 | 43 | { |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * @return whether capacity should be increased. |
|
| 95 | + * @return boolean capacity should be increased. |
|
| 96 | 96 | */ |
| 97 | 97 | protected function shouldDecreaseCapacity(): bool |
| 98 | 98 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | - * @return whether capacity should be increased. |
|
| 103 | + * @return boolean capacity should be increased. |
|
| 104 | 104 | */ |
| 105 | 105 | protected function shouldIncreaseCapacity(): bool |
| 106 | 106 | { |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | */ |
| 89 | 89 | protected function decreaseCapacity() |
| 90 | 90 | { |
| 91 | - $this->capacity = max(self::MIN_CAPACITY, $this->capacity * $this->getDecayFactor()); |
|
| 91 | + $this->capacity = max(self::MIN_CAPACITY, $this->capacity * $this->getDecayFactor()); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * @return whether capacity should be increased. |
|
| 26 | + * @return boolean capacity should be increased. |
|
| 27 | 27 | */ |
| 28 | 28 | protected function shouldIncreaseCapacity(): bool |
| 29 | 29 | { |