@@ -265,7 +265,7 @@ |
||
| 265 | 265 | /** |
| 266 | 266 | * {@inheritdoc} |
| 267 | 267 | */ |
| 268 | - public function forEach(callable $consumer): void |
|
| 268 | + public function forEach (callable $consumer): void |
|
| 269 | 269 | { |
| 270 | 270 | foreach ($this->data as $key => $value) { |
| 271 | 271 | $consumer($value, $key); |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | * }); |
| 87 | 87 | * </code> |
| 88 | 88 | */ |
| 89 | - public function forEach(callable $consumer): void; |
|
| 89 | + public function forEach (callable $consumer): void; |
|
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * {@inheritdoc} |
@@ -307,7 +307,7 @@ |
||
| 307 | 307 | * |
| 308 | 308 | * @see ConsumerInterface |
| 309 | 309 | */ |
| 310 | - public function forEach(callable $consumer): void; |
|
| 310 | + public function forEach (callable $consumer): void; |
|
| 311 | 311 | |
| 312 | 312 | /** |
| 313 | 313 | * Aggregate the stream to an array |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | } else { |
| 75 | 75 | usort($this->data, $this->comparator); |
| 76 | 76 | } |
| 77 | - } elseif($preserveKeys) { |
|
| 77 | + } elseif ($preserveKeys) { |
|
| 78 | 78 | asort($this->data); |
| 79 | 79 | } else { |
| 80 | 80 | sort($this->data); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | /** |
| 88 | 88 | * {@inheritdoc} |
| 89 | 89 | */ |
| 90 | - public function forEach(callable $consumer): void |
|
| 90 | + public function forEach (callable $consumer): void |
|
| 91 | 91 | { |
| 92 | 92 | foreach ($this->toArray() as $k => $v) { |
| 93 | 93 | $consumer($v, $k); |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | /** |
| 90 | 90 | * @see StreamInterface::forEach() |
| 91 | 91 | */ |
| 92 | - public function forEach(callable $consumer): void |
|
| 92 | + public function forEach (callable $consumer): void |
|
| 93 | 93 | { |
| 94 | 94 | foreach ($this as $key => $value) { |
| 95 | 95 | $consumer($value, $key); |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | /** |
| 95 | 95 | * {@inheritdoc} |
| 96 | 96 | */ |
| 97 | - public function forEach(callable $consumer): void |
|
| 97 | + public function forEach (callable $consumer): void |
|
| 98 | 98 | { |
| 99 | 99 | } |
| 100 | 100 | |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | /** |
| 173 | 173 | * {@inheritdoc} |
| 174 | 174 | */ |
| 175 | - public function forEach(callable $consumer): void |
|
| 175 | + public function forEach (callable $consumer): void |
|
| 176 | 176 | { |
| 177 | 177 | foreach ($this->data as $k => $v) { |
| 178 | 178 | $consumer($v, $k); |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | /** |
| 133 | 133 | * {@inheritdoc} |
| 134 | 134 | */ |
| 135 | - public function forEach(callable $consumer): void |
|
| 135 | + public function forEach (callable $consumer): void |
|
| 136 | 136 | { |
| 137 | 137 | $consumer($this->value, $this->key); |
| 138 | 138 | $this->closed = true; |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | /** |
| 126 | 126 | * @see CollectionInterface::forEach() |
| 127 | 127 | */ |
| 128 | - public function forEach(callable $consumer): void |
|
| 128 | + public function forEach (callable $consumer): void |
|
| 129 | 129 | { |
| 130 | 130 | $this->collection->forEach($consumer); |
| 131 | 131 | } |