@@ -10,7 +10,7 @@ |
||
10 | 10 | if (is_double($value)) { |
11 | 11 | $str = \strval($value); |
12 | 12 | if (strlen($str) == 1) { |
13 | - return sprintf("%1\$.1f",$value); |
|
13 | + return sprintf("%1\$.1f", $value); |
|
14 | 14 | } |
15 | 15 | return \strval($value); |
16 | 16 | } |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | public function filterByKeys(array $keys): ArrayListInterface |
213 | 213 | { |
214 | 214 | $newInstance = new static(); |
215 | - $newInstance->setArray(array_filter($this->array, function ($key) use ($keys) { |
|
215 | + $newInstance->setArray(array_filter($this->array, function($key) use ($keys) { |
|
216 | 216 | return in_array($key, $keys); |
217 | 217 | }, ARRAY_FILTER_USE_KEY)); |
218 | 218 | return $newInstance; |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | public function mapNotNull(callable $mapFunction): ArrayListInterface |
239 | 239 | { |
240 | 240 | $newInstance = new static(); |
241 | - $newInstance->setArray(array_values(array_filter(array_map($mapFunction, $this->array), function ($item) { |
|
241 | + $newInstance->setArray(array_values(array_filter(array_map($mapFunction, $this->array), function($item) { |
|
242 | 242 | return $item !== null; |
243 | 243 | }))); |
244 | 244 | return $newInstance; |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | public function flatten(): ArrayListInterface |
252 | 252 | { |
253 | 253 | $flattenedArray = []; |
254 | - array_walk_recursive($this->array, function ($item) use (&$flattenedArray) { |
|
254 | + array_walk_recursive($this->array, function($item) use (&$flattenedArray) { |
|
255 | 255 | $flattenedArray[] = $item; |
256 | 256 | }); |
257 | 257 | $newInstance = new static(); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | */ |
286 | 286 | public function collectToString(string $delimiter): string |
287 | 287 | { |
288 | - return implode($delimiter, $this->map(function ($item) { |
|
288 | + return implode($delimiter, $this->map(function($item) { |
|
289 | 289 | if (is_scalar($item)) { |
290 | 290 | return strval($item); |
291 | 291 | } else if (is_object($item)) { |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | } |
295 | 295 | } |
296 | 296 | throw new NotConvertibleToStringException( |
297 | - "Couldn't collectToString since any object in list contains objects which are not " . |
|
297 | + "Couldn't collectToString since any object in list contains objects which are not ". |
|
298 | 298 | "convertible to string."); |
299 | 299 | })->toArray()); |
300 | 300 | } |