GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 10-11 lines in 2 locations

Collection.php 2 locations

@@ 613-623 (lines=11) @@
610
    /**
611
     * {@inheritdoc}
612
     */
613
    public function shuffle(): CollectionInterface
614
    {
615
        $values = $this->values;
616
        $result = shuffle($values);
617
618
        if ($result === false) {
619
            throw new RuntimeException('Shuffle operation failed');
620
        }
621
622
        return new self($values);
623
    }
624
625
    /**
626
     * {@inheritdoc}
@@ 691-700 (lines=10) @@
688
    /**
689
     * {@inheritdoc}
690
     */
691
    public function walk(callable $walker): CollectionInterface
692
    {
693
        $values = $this->values;
694
695
        if (array_walk($values, $walker) === false) {
696
            throw new RuntimeException('Walk operation failed');
697
        }
698
699
        return new self($values);
700
    }
701
702
    /**
703
     * {@inheritdoc}