Code Duplication    Length = 12-12 lines in 3 locations

src/Traits/StrictIterableTrait.php 1 location

@@ 228-239 (lines=12) @@
225
        return false;
226
    }
227
228
    public function concatAll()
229
    {
230
        /** @var VectorInterface $results */
231
        $results = new static();
232
        $this->each(function (Iterable $subArray) use ($results) {
233
            $subArray->each(function ($item) use ($results) {
234
                $results->add($item);
235
            });
236
        });
237
238
        return $results;
239
    }
240
241
    protected function concatRecurse($array, $array1)
242
    {

src/Traits/CommonContainerMethodsTrait.php 1 location

@@ 360-371 (lines=12) @@
357
        return false;
358
    }
359
360
    public function concatAll()
361
    {
362
        /** @var VectorInterface $results */
363
        $results = new static();
364
        $this->each(function (Iterable $subArray) use ($results) {
365
            $subArray->each(function ($item) use ($results) {
366
                $results->add($item);
367
            });
368
        });
369
370
        return $results;
371
    }
372
373
    /**
374
     * {@inheritDoc}

src/Traits/StrictKeyedIterableTrait.php 1 location

@@ 199-210 (lines=12) @@
196
        return false;
197
    }
198
199
    public function concatAll()
200
    {
201
        /** @var MapInterface $results */
202
        $results = new static();
203
        $this->each(function (Iterable $subArray) use ($results) {
204
            $subArray->each(function ($item, $key) use ($results) {
205
                $results->add($key, $item);
206
            });
207
        });
208
209
        return $results;
210
    }
211
212
    protected function concatRecurse($array, $array1)
213
    {