@@ -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 | |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | * |
254 | 254 | * @param callable(T): void $function |
255 | 255 | */ |
256 | - public function foreach(callable $function): SideEffect |
|
256 | + public function foreach (callable $function): SideEffect |
|
257 | 257 | { |
258 | 258 | return $this->implementation->foreach($function); |
259 | 259 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable\Monoid; |
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\Set; |
5 | 5 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @param callable(T): void $function |
91 | 91 | */ |
92 | - public function foreach(callable $function): SideEffect; |
|
92 | + public function foreach (callable $function): SideEffect; |
|
93 | 93 | |
94 | 94 | /** |
95 | 95 | * Return a new map of pairs 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\Set; |
5 | 5 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | /** |
146 | 146 | * @param callable(T): void $function |
147 | 147 | */ |
148 | - public function foreach(callable $function): SideEffect |
|
148 | + public function foreach (callable $function): SideEffect |
|
149 | 149 | { |
150 | 150 | return $this->values->foreach($function); |
151 | 151 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable\State; |
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 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @param callable(T, S): void $function |
79 | 79 | */ |
80 | - public function foreach(callable $function): SideEffect; |
|
80 | + public function foreach (callable $function): SideEffect; |
|
81 | 81 | |
82 | 82 | /** |
83 | 83 | * 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\Map; |
5 | 5 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | /** |
172 | 172 | * @param callable(T, S): void $function |
173 | 173 | */ |
174 | - public function foreach(callable $function): SideEffect |
|
174 | + public function foreach (callable $function): SideEffect |
|
175 | 175 | { |
176 | 176 | foreach ($this->values as $k => $v) { |
177 | 177 | $function($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 | |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | /** |
186 | 186 | * @param callable(T, S): void $function |
187 | 187 | */ |
188 | - public function foreach(callable $function): SideEffect |
|
188 | + public function foreach (callable $function): SideEffect |
|
189 | 189 | { |
190 | 190 | /** @psalm-suppress ImpureMethodCall */ |
191 | 191 | foreach ($this->values as $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 | |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | /** |
148 | 148 | * @param callable(T, S): void $function |
149 | 149 | */ |
150 | - public function foreach(callable $function): SideEffect |
|
150 | + public function foreach (callable $function): SideEffect |
|
151 | 151 | { |
152 | 152 | foreach ($this->pairs->iterator() as $pair) { |
153 | 153 | $function($pair->key(), $pair->value()); |