@@ -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 |
@@ -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 |
@@ -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) |