@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | { |
| 203 | 203 | /** @noinspection PhpMethodParametersCountMismatchInspection */ |
| 204 | 204 | $newInstance = new self(); |
| 205 | - $newInstance->setArray(array_filter($this->array, function ($key) use ($keys) { |
|
| 205 | + $newInstance->setArray(array_filter($this->array, function($key) use ($keys) { |
|
| 206 | 206 | return array_search($key, $keys) !== false; |
| 207 | 207 | }, ARRAY_FILTER_USE_KEY)); |
| 208 | 208 | return $newInstance; |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | public function flatten() |
| 228 | 228 | { |
| 229 | 229 | $flattenedArray = []; |
| 230 | - array_walk_recursive($this->array, function ($item) use (&$flattenedArray) { |
|
| 230 | + array_walk_recursive($this->array, function($item) use (&$flattenedArray) { |
|
| 231 | 231 | $flattenedArray[] = $item; |
| 232 | 232 | }); |
| 233 | 233 | $newInstance = new self(); |