@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | public function filterByKeys(array $keys): ArrayListInterface |
211 | 211 | { |
212 | 212 | $newInstance = new self(); |
213 | - $newInstance->setArray(array_filter($this->array, function ($key) use ($keys) { |
|
213 | + $newInstance->setArray(array_filter($this->array, function($key) use ($keys) { |
|
214 | 214 | return array_search($key, $keys) !== false; |
215 | 215 | }, ARRAY_FILTER_USE_KEY)); |
216 | 216 | return $newInstance; |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | public function flatten(): ArrayListInterface |
236 | 236 | { |
237 | 237 | $flattenedArray = []; |
238 | - array_walk_recursive($this->array, function ($item) use (&$flattenedArray) { |
|
238 | + array_walk_recursive($this->array, function($item) use (&$flattenedArray) { |
|
239 | 239 | $flattenedArray[] = $item; |
240 | 240 | }); |
241 | 241 | $newInstance = new self(); |