@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | public function flatten(): ListInterface |
170 | 170 | { |
171 | 171 | $flattenedArray = []; |
172 | - array_walk_recursive($this->array, function ($item) use (&$flattenedArray) { |
|
172 | + array_walk_recursive($this->array, function($item) use (&$flattenedArray) { |
|
173 | 173 | $flattenedArray[] = $item; |
174 | 174 | }); |
175 | 175 | return listOf(...$flattenedArray); |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | public function joinToString(string $delimiter, string $prefix = null, string $suffix = null): string |
192 | 192 | { |
193 | - $result = implode($delimiter, $this->map(function ($item) { |
|
193 | + $result = implode($delimiter, $this->map(function($item) { |
|
194 | 194 | assertStringable( |
195 | 195 | $item, |
196 | 196 | "All elements in the list must be convertible to string in order to use joinToString." |
@@ -198,10 +198,10 @@ discard block |
||
198 | 198 | return strval($item); |
199 | 199 | })->toArray()); |
200 | 200 | if ($prefix !== null) { |
201 | - $result = $prefix . $result; |
|
201 | + $result = $prefix.$result; |
|
202 | 202 | } |
203 | 203 | if ($suffix !== null) { |
204 | - $result = $result . $suffix; |
|
204 | + $result = $result.$suffix; |
|
205 | 205 | } |
206 | 206 | return $result; |
207 | 207 | } |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | /** |
340 | 340 | * @inheritDoc |
341 | 341 | */ |
342 | - public function forEach(callable $action): void |
|
342 | + public function forEach (callable $action): void |
|
343 | 343 | { |
344 | 344 | foreach ($this->array as $element) { |
345 | 345 | $action($element); |