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 = 8-10 lines in 2 locations

Collection.php 2 locations

@@ 559-566 (lines=8) @@
556
    /**
557
     * {@inheritdoc}
558
     */
559
    public function first()
560
    {
561
        if ($this->count() === 0) {
562
            throw new OutOfBoundException('There is no first item');
563
        }
564
565
        return array_values($this->values)[0];
566
    }
567
568
    /**
569
     * {@inheritdoc}
@@ 571-580 (lines=10) @@
568
    /**
569
     * {@inheritdoc}
570
     */
571
    public function last()
572
    {
573
        if ($this->count() === 0) {
574
            throw new OutOfBoundException('There is no last item');
575
        }
576
577
        $values = array_values($this->values);
578
579
        return end($values);
580
    }
581
582
    /**
583
     * {@inheritdoc}