@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * Return all elements that satisfy the given predicate |
| 64 | 64 | * |
| 65 | - * @param Closure $predicate |
|
| 65 | + * @param \Closure $predicate |
|
| 66 | 66 | * |
| 67 | 67 | * @return self |
| 68 | 68 | */ |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * Apply the given function to all elements of the sequence |
| 73 | 73 | * |
| 74 | - * @param Closure $function |
|
| 74 | + * @param \Closure $function |
|
| 75 | 75 | * |
| 76 | 76 | * @return self |
| 77 | 77 | */ |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * Return a new map of pairs grouped by keys determined with the given |
| 82 | 82 | * discriminator function |
| 83 | 83 | * |
| 84 | - * @param Closure $discriminator |
|
| 84 | + * @param \Closure $discriminator |
|
| 85 | 85 | * |
| 86 | 86 | * @return MapInterface |
| 87 | 87 | */ |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | /** |
| 132 | 132 | * Return a new sequence by applying the given function to all elements |
| 133 | 133 | * |
| 134 | - * @param Closure $function |
|
| 134 | + * @param \Closure $function |
|
| 135 | 135 | * |
| 136 | 136 | * @return self |
| 137 | 137 | */ |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | /** |
| 151 | 151 | * Return a sequence of 2 sequences partitioned according to the given predicate |
| 152 | 152 | * |
| 153 | - * @param Closure $predicate |
|
| 153 | + * @param \Closure $predicate |
|
| 154 | 154 | * |
| 155 | 155 | * @return self[self] |
| 156 | 156 | */ |
@@ -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 |
@@ -266,7 +266,7 @@ discard block |
||
| 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)); |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | |
| 300 | 300 | $pair = $this->pairs->get($index); |
| 301 | 301 | |
| 302 | - if ($map->contains($newKey)){ |
|
| 302 | + if ($map->contains($newKey)) { |
|
| 303 | 303 | $map = $map->put( |
| 304 | 304 | $newKey, |
| 305 | 305 | $map->get($newKey)->add($pair) |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | * |
| 102 | 102 | * @return self |
| 103 | 103 | */ |
| 104 | - public function foreach(\Closure $function): self; |
|
| 104 | + public function foreach (\Closure $function): self; |
|
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | 107 | * Return a new map of pairs' sequences grouped by keys determined with the given |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | /** |
| 198 | 198 | * {@inheritdoc} |
| 199 | 199 | */ |
| 200 | - public function foreach(\Closure $function): SequenceInterface |
|
| 200 | + public function foreach (\Closure $function): SequenceInterface |
|
| 201 | 201 | { |
| 202 | 202 | foreach ($this->values as $value) { |
| 203 | 203 | $function($value); |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | ); |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | - if ($map->contains($key)){ |
|
| 231 | + if ($map->contains($key)) { |
|
| 232 | 232 | $map = $map->put( |
| 233 | 233 | $key, |
| 234 | 234 | $map->get($key)->add($value) |