@@ -191,7 +191,7 @@ |
||
191 | 191 | /** |
192 | 192 | * {@inheritdoc} |
193 | 193 | */ |
194 | - public function foreach(callable $function): SetInterface |
|
194 | + public function foreach (callable $function): SetInterface |
|
195 | 195 | { |
196 | 196 | $this->values->foreach($function); |
197 | 197 |
@@ -89,7 +89,7 @@ |
||
89 | 89 | * |
90 | 90 | * @return self |
91 | 91 | */ |
92 | - public function foreach(callable $function): self; |
|
92 | + public function foreach (callable $function): self; |
|
93 | 93 | |
94 | 94 | /** |
95 | 95 | * Return a new map of pairs grouped by keys determined with the given |
@@ -85,7 +85,7 @@ |
||
85 | 85 | * |
86 | 86 | * @return self<T> |
87 | 87 | */ |
88 | - public function foreach(callable $function): self; |
|
88 | + public function foreach (callable $function): self; |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * Return a new map of pairs grouped by keys determined with the given |
@@ -210,7 +210,7 @@ |
||
210 | 210 | /** |
211 | 211 | * Append the given stream to the current one |
212 | 212 | * |
213 | - * @param self $stream |
|
213 | + * @param Sequence $stream |
|
214 | 214 | * |
215 | 215 | * @return self<T> |
216 | 216 | */ |
@@ -198,7 +198,7 @@ |
||
198 | 198 | /** |
199 | 199 | * {@inheritdoc} |
200 | 200 | */ |
201 | - public function foreach(callable $function): SequenceInterface |
|
201 | + public function foreach (callable $function): SequenceInterface |
|
202 | 202 | { |
203 | 203 | foreach ($this->values as $value) { |
204 | 204 | $function($value); |
@@ -264,7 +264,7 @@ |
||
264 | 264 | /** |
265 | 265 | * {@inheritdoc} |
266 | 266 | */ |
267 | - public function foreach(callable $function): MapInterface |
|
267 | + public function foreach (callable $function): MapInterface |
|
268 | 268 | { |
269 | 269 | foreach ($this->pairs as $pair) { |
270 | 270 | $function($pair->key(), $pair->value()); |
@@ -213,7 +213,7 @@ |
||
213 | 213 | /** |
214 | 214 | * {@inheritdoc} |
215 | 215 | */ |
216 | - public function foreach(callable $function): StreamInterface |
|
216 | + public function foreach (callable $function): StreamInterface |
|
217 | 217 | { |
218 | 218 | $this->values->foreach($function); |
219 | 219 |
@@ -8,6 +8,7 @@ discard block |
||
8 | 8 | /** |
9 | 9 | * @param string $keyType Type T |
10 | 10 | * @param string $valueType Type S |
11 | + * @return void |
|
11 | 12 | */ |
12 | 13 | public function __construct(string $keyType, string $valueType); |
13 | 14 | |
@@ -163,7 +164,7 @@ discard block |
||
163 | 164 | /** |
164 | 165 | * Reduce the map to a single value |
165 | 166 | * |
166 | - * @param mixed $carry |
|
167 | + * @param Map $carry |
|
167 | 168 | * @param callable $reducer |
168 | 169 | * |
169 | 170 | * @return mixed |
@@ -87,7 +87,7 @@ |
||
87 | 87 | * |
88 | 88 | * @return self<T, S> |
89 | 89 | */ |
90 | - public function foreach(callable $function): self; |
|
90 | + public function foreach (callable $function): self; |
|
91 | 91 | |
92 | 92 | /** |
93 | 93 | * Return a new map of pairs' sequences grouped by keys determined with the given |
@@ -10,6 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | /** |
12 | 12 | * @param string $type Type T |
13 | + * @return void |
|
13 | 14 | */ |
14 | 15 | public function __construct(string $type); |
15 | 16 |
@@ -85,7 +85,7 @@ |
||
85 | 85 | * |
86 | 86 | * @return self<T> |
87 | 87 | */ |
88 | - public function foreach(callable $function): self; |
|
88 | + public function foreach (callable $function): self; |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * Return a new map of pairs grouped by keys determined with the given |