@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable\Exception; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable\Map; |
5 | 5 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | /** |
170 | 170 | * {@inheritdoc} |
171 | 171 | */ |
172 | - public function foreach(callable $function): void |
|
172 | + public function foreach (callable $function): void |
|
173 | 173 | { |
174 | 174 | foreach ($this->values as $k => $v) { |
175 | 175 | $function($this->normalizeKey($k), $v); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable\Map; |
5 | 5 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | /** |
178 | 178 | * {@inheritdoc} |
179 | 179 | */ |
180 | - public function foreach(callable $function): void |
|
180 | + public function foreach (callable $function): void |
|
181 | 181 | { |
182 | 182 | foreach ($this->pairs->toArray() as $pair) { |
183 | 183 | $function($pair->key(), $pair->value()); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable\Map; |
5 | 5 | |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | /** |
177 | 177 | * {@inheritdoc} |
178 | 178 | */ |
179 | - public function foreach(callable $function): void |
|
179 | + public function foreach (callable $function): void |
|
180 | 180 | { |
181 | 181 | foreach ($this->values as $k) { |
182 | 182 | $v = $this->values[$k]; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable\Map; |
5 | 5 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * |
85 | 85 | * @param callable(T, S): void $function |
86 | 86 | */ |
87 | - public function foreach(callable $function): void; |
|
87 | + public function foreach (callable $function): void; |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * Return a new map of pairs' sequences grouped by keys determined with the given |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable; |
5 | 5 | |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | * |
200 | 200 | * @return self<T, S> |
201 | 201 | */ |
202 | - public function foreach(callable $function): void |
|
202 | + public function foreach (callable $function): void |
|
203 | 203 | { |
204 | 204 | $this->implementation->foreach($function); |
205 | 205 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable\Set; |
5 | 5 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * |
94 | 94 | * @param callable(T): void $function |
95 | 95 | */ |
96 | - public function foreach(callable $function): void; |
|
96 | + public function foreach (callable $function): void; |
|
97 | 97 | |
98 | 98 | /** |
99 | 99 | * Return a new map of pairs grouped by keys determined with the given |