Passed
Branch version-2.0 (44a57f)
by Sebastian
02:26
created
src/Seboettg/Collection/ArrayList/ArrayListTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.