@@ -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 | |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | /** |
| 168 | 168 | * @param callable(T, S): void $function |
| 169 | 169 | */ |
| 170 | - public function foreach(callable $function): void |
|
| 170 | + public function foreach (callable $function): void |
|
| 171 | 171 | { |
| 172 | 172 | foreach ($this->values as $k => $v) { |
| 173 | 173 | $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 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | /** |
| 186 | 186 | * @param callable(T, S): void $function |
| 187 | 187 | */ |
| 188 | - public function foreach(callable $function): void |
|
| 188 | + public function foreach (callable $function): void |
|
| 189 | 189 | { |
| 190 | 190 | foreach ($this->pairs->toArray() as $pair) { |
| 191 | 191 | $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 | |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | /** |
| 183 | 183 | * @param callable(T, S): void $function |
| 184 | 184 | */ |
| 185 | - public function foreach(callable $function): void |
|
| 185 | + public function foreach (callable $function): void |
|
| 186 | 186 | { |
| 187 | 187 | foreach ($this->values as $k) { |
| 188 | 188 | /** @var T $key */ |
@@ -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\Sequence; |
| 5 | 5 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | /** |
| 152 | 152 | * @param callable(T): void $function |
| 153 | 153 | */ |
| 154 | - public function foreach(callable $function): void |
|
| 154 | + public function foreach (callable $function): void |
|
| 155 | 155 | { |
| 156 | 156 | foreach ($this->values as $value) { |
| 157 | 157 | $function($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\Sequence; |
| 5 | 5 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * |
| 88 | 88 | * @param callable(T): void $function |
| 89 | 89 | */ |
| 90 | - public function foreach(callable $function): void; |
|
| 90 | + public function foreach (callable $function): void; |
|
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * 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; |
| 5 | 5 | |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | * |
| 215 | 215 | * @param callable(T, S): void $function |
| 216 | 216 | */ |
| 217 | - public function foreach(callable $function): void |
|
| 217 | + public function foreach (callable $function): void |
|
| 218 | 218 | { |
| 219 | 219 | $this->implementation->foreach($function); |
| 220 | 220 | } |
@@ -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 | |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | /** |
| 169 | 169 | * @param callable(T): void $function |
| 170 | 170 | */ |
| 171 | - public function foreach(callable $function): void |
|
| 171 | + public function foreach (callable $function): void |
|
| 172 | 172 | { |
| 173 | 173 | $this->values->foreach($function); |
| 174 | 174 | } |