@@ -5,6 +5,9 @@ discard block |
||
| 5 | 5 | |
| 6 | 6 | interface MapInterface extends SizeableInterface, \Countable, \Iterator, \ArrayAccess |
| 7 | 7 | { |
| 8 | + /** |
|
| 9 | + * @return void |
|
| 10 | + */ |
|
| 8 | 11 | public function __construct(string $keyType, string $valueType); |
| 9 | 12 | |
| 10 | 13 | /** |
@@ -209,7 +212,7 @@ discard block |
||
| 209 | 212 | /** |
| 210 | 213 | * Reduce the map to a single value |
| 211 | 214 | * |
| 212 | - * @param mixed $carry |
|
| 215 | + * @param Map $carry |
|
| 213 | 216 | * @param callable $reducer |
| 214 | 217 | * |
| 215 | 218 | * @return mixed |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | * |
| 102 | 102 | * @return self |
| 103 | 103 | */ |
| 104 | - public function foreach(callable $function): self; |
|
| 104 | + public function foreach (callable $function): self; |
|
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | 107 | * Return a new map of pairs' sequences grouped by keys determined with the given |
@@ -8,6 +8,9 @@ discard block |
||
| 8 | 8 | */ |
| 9 | 9 | interface SetInterface extends SizeableInterface, PrimitiveInterface, \Countable, \Iterator |
| 10 | 10 | { |
| 11 | + /** |
|
| 12 | + * @return void |
|
| 13 | + */ |
|
| 11 | 14 | public function __construct(string $type); |
| 12 | 15 | |
| 13 | 16 | /** |
@@ -149,7 +152,7 @@ discard block |
||
| 149 | 152 | /** |
| 150 | 153 | * Reduce the set to a single value |
| 151 | 154 | * |
| 152 | - * @param mixed $carry |
|
| 155 | + * @param Set $carry |
|
| 153 | 156 | * @param callable $reducer |
| 154 | 157 | * |
| 155 | 158 | * @return mixed |
@@ -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 |
@@ -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 |
@@ -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 | |