@@ -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 array_search($key, $keys) !== false; |
217 | 217 | }, ARRAY_FILTER_USE_KEY)); |
218 | 218 | return $newInstance; |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | public function flatten(): ArrayListInterface |
238 | 238 | { |
239 | 239 | $flattenedArray = []; |
240 | - array_walk_recursive($this->array, function ($item) use (&$flattenedArray) { |
|
240 | + array_walk_recursive($this->array, function($item) use (&$flattenedArray) { |
|
241 | 241 | $flattenedArray[] = $item; |
242 | 242 | }); |
243 | 243 | $newInstance = new static(); |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | */ |
272 | 272 | public function collectToString(string $delimiter): string |
273 | 273 | { |
274 | - return implode($delimiter, $this->map(function ($item) { |
|
274 | + return implode($delimiter, $this->map(function($item) { |
|
275 | 275 | if (is_scalar($item)) { |
276 | 276 | return strval($item); |
277 | 277 | } else if (is_object($item)) { |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | } |
281 | 281 | } |
282 | 282 | throw new NotConvertibleToStringException( |
283 | - "Couldn't collectToString since any object in list contains objects which are not " . |
|
283 | + "Couldn't collectToString since any object in list contains objects which are not ". |
|
284 | 284 | "convertible to string."); |
285 | 285 | })->toArray()); |
286 | 286 | } |