Code Duplication    Length = 10-10 lines in 2 locations

src/Ds/Map.php 2 locations

@@ 373-382 (lines=10) @@
370
     *
371
     * @return Sequence
372
     */
373
    public function pairs(): Sequence
374
    {
375
        $sequence = new Vector();
376
377
        foreach ($this->pairs as $pair) {
378
            $sequence[] = $pair->copy();
379
        }
380
381
        return $sequence;
382
    }
383
384
    /**
385
     * Associates a key with a value, replacing a previous association if there
@@ 573-582 (lines=10) @@
570
     *
571
     * @return Sequence
572
     */
573
    public function values(): Sequence
574
    {
575
        $sequence = new Vector();
576
577
        foreach ($this->pairs as $pair) {
578
            $sequence[] = $pair->value;
579
        }
580
581
        return $sequence;
582
    }
583
584
    /**
585
     * Get iterator