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

src/OAuth2Client.php 2 locations

@@ 163-172 (lines=10) @@
160
161
        // all of the above parameters were part of the requestUri, make sure
162
        // they are still there...
163
        foreach ($requiredParameters as $requiredParameter) {
164
            if (!array_key_exists($requiredParameter, $requestParameters)) {
165
                throw new OAuthException(
166
                    sprintf(
167
                        'request URI not valid, missing required query parameter "%s"',
168
                        $requiredParameter
169
                    )
170
                );
171
            }
172
        }
173
174
        return $requestParameters;
175
    }
@@ 184-193 (lines=10) @@
181
            'token_type',
182
        ];
183
184
        foreach ($requiredParameters as $requiredParameter) {
185
            if (!array_key_exists($requiredParameter, $tokenResponse)) {
186
                throw new OAuthException(
187
                    sprintf(
188
                        'token response not valid, missing required parameter "%s"',
189
                        $requiredParameter
190
                    )
191
                );
192
            }
193
        }
194
195
        if (!array_key_exists('scope', $tokenResponse)) {
196
            // if the token endpoint does not return a 'scope' value, the