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

src/MatchResult.php 2 locations

@@ 76-83 (lines=8) @@
73
     *
74
     * @throws RegexFailed
75
     */
76
    public function group(int $index): string
77
    {
78
        if (! isset($this->matches[$index])) {
79
            throw RegexFailed::indexedGroupDoesntExist($this->pattern, $this->subject, $index);
80
        }
81
82
        return $this->matches[$index];
83
    }
84
85
    /**
86
     * Match group by name.
@@ 94-101 (lines=8) @@
91
     *
92
     * @throws RegexFailed
93
     */
94
    public function namedGroup(string $groupName): string
95
    {
96
        if (! isset($this->matches[$groupName])) {
97
            throw RegexFailed::namedGroupDoesntExist($this->pattern, $this->subject, $groupName);
98
        }
99
100
        return $this->matches[$groupName];
101
    }
102
}
103