@@ -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 |
@@ -329,7 +329,6 @@ |
||
329 | 329 | * |
330 | 330 | * @param string $regex |
331 | 331 | * @param int $limit |
332 | - * @param int $flags |
|
333 | 332 | * |
334 | 333 | * @return StreamInterface<self> |
335 | 334 | */ |
@@ -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 |
@@ -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 |