@@ -75,7 +75,7 @@ |
||
| 75 | 75 | * |
| 76 | 76 | * @return self |
| 77 | 77 | */ |
| 78 | - public function foreach(\Closure $function): self; |
|
| 78 | + public function foreach (\Closure $function): self; |
|
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Return a new map of pairs grouped by keys determined with the given |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | * |
| 76 | 76 | * @return self |
| 77 | 77 | */ |
| 78 | - public function foreach(\Closure $function): self; |
|
| 78 | + public function foreach (\Closure $function): self; |
|
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Return a new map of pairs grouped by keys determined with the given |
@@ -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 | /** |
@@ -88,7 +91,7 @@ discard block |
||
| 88 | 91 | /** |
| 89 | 92 | * Filter the map based on the given predicate |
| 90 | 93 | * |
| 91 | - * @param Closure $predicate |
|
| 94 | + * @param \Closure $predicate |
|
| 92 | 95 | * |
| 93 | 96 | * @return self |
| 94 | 97 | */ |
@@ -97,7 +100,7 @@ discard block |
||
| 97 | 100 | /** |
| 98 | 101 | * Run the given function for each element of the map |
| 99 | 102 | * |
| 100 | - * @param Closure $function |
|
| 103 | + * @param \Closure $function |
|
| 101 | 104 | * |
| 102 | 105 | * @return self |
| 103 | 106 | */ |
@@ -107,7 +110,7 @@ discard block |
||
| 107 | 110 | * Return a new map of pairs' sequences grouped by keys determined with the given |
| 108 | 111 | * discriminator function |
| 109 | 112 | * |
| 110 | - * @param Closure $discriminator |
|
| 113 | + * @param \Closure $discriminator |
|
| 111 | 114 | * |
| 112 | 115 | * @return self |
| 113 | 116 | */ |
@@ -146,7 +149,7 @@ discard block |
||
| 146 | 149 | * |
| 147 | 150 | * Keys can't be modified |
| 148 | 151 | * |
| 149 | - * @param Closure $function |
|
| 152 | + * @param \Closure $function |
|
| 150 | 153 | * |
| 151 | 154 | * @return self |
| 152 | 155 | */ |
@@ -198,7 +198,7 @@ |
||
| 198 | 198 | /** |
| 199 | 199 | * {@inheritdoc} |
| 200 | 200 | */ |
| 201 | - public function foreach(\Closure $function): SequenceInterface |
|
| 201 | + public function foreach (\Closure $function): SequenceInterface |
|
| 202 | 202 | { |
| 203 | 203 | foreach ($this->values as $value) { |
| 204 | 204 | $function($value); |
@@ -266,7 +266,7 @@ |
||
| 266 | 266 | /** |
| 267 | 267 | * {@inheritdoc} |
| 268 | 268 | */ |
| 269 | - public function foreach(\Closure $function): MapInterface |
|
| 269 | + public function foreach (\Closure $function): MapInterface |
|
| 270 | 270 | { |
| 271 | 271 | foreach ($this->keys as $index => $key) { |
| 272 | 272 | $function($key, $this->values->get($index)); |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | * |
| 76 | 76 | * @return self |
| 77 | 77 | */ |
| 78 | - public function foreach(\Closure $function): self; |
|
| 78 | + public function foreach (\Closure $function): self; |
|
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Return a new map of pairs grouped by keys determined with the given |
@@ -8,6 +8,9 @@ |
||
| 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 | /** |
@@ -185,7 +185,7 @@ |
||
| 185 | 185 | /** |
| 186 | 186 | * {@inheritdoc} |
| 187 | 187 | */ |
| 188 | - public function foreach(\Closure $function): SetInterface |
|
| 188 | + public function foreach (\Closure $function): SetInterface |
|
| 189 | 189 | { |
| 190 | 190 | $this->values->foreach($function); |
| 191 | 191 | |