Passed
Push — master ( 704a56...9c0cfb )
by Sebastian
03:54
created
src/ArrayList/ArrayListTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.