Code Duplication    Length = 12-12 lines in 2 locations

src/Iterator/LazyKeyedIterableTrait.php 1 location

@@ 217-228 (lines=12) @@
214
        return false;
215
    }
216
217
    public function concatAll()
218
    {
219
        /** @var VectorInterface $results */
220
        $results = new static();
221
        $this->each(function ($subArray) use ($results) {
222
            foreach ($subArray as $item) {
223
                $results->add($item);
224
            }
225
        });
226
227
        return $results;
228
    }
229
230
    /**
231
     * {@inheritDoc}

src/Traits/CommonContainerMethodsTrait.php 1 location

@@ 347-358 (lines=12) @@
344
        return false;
345
    }
346
347
    public function concatAll()
348
    {
349
        /** @var VectorInterface $results */
350
        $results = new static();
351
        $this->each(function (Enumerable $subArray) use ($results) {
352
            $subArray->each(function ($item) use ($results) {
353
                $results->add($item);
354
            });
355
        });
356
357
        return $results;
358
    }
359
360
    /**
361
     * {@inheritDoc}