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

@@ 216-225 (lines=10) @@
213
214
        // all of the above parameters were part of the requestUri, make sure
215
        // they are still there...
216
        foreach ($requiredParameters as $requiredParameter) {
217
            if (!array_key_exists($requiredParameter, $requestParameters)) {
218
                throw new OAuthException(
219
                    sprintf(
220
                        'request URI not valid, missing required query parameter "%s"',
221
                        $requiredParameter
222
                    )
223
                );
224
            }
225
        }
226
227
        return $requestParameters;
228
    }
@@ 246-255 (lines=10) @@
243
            'token_type',
244
        ];
245
246
        foreach ($requiredParameters as $requiredParameter) {
247
            if (!array_key_exists($requiredParameter, $tokenResponse)) {
248
                throw new OAuthException(
249
                    sprintf(
250
                        'token response not valid, missing required parameter "%s"',
251
                        $requiredParameter
252
                    )
253
                );
254
            }
255
        }
256
257
        if (!array_key_exists('scope', $tokenResponse)) {
258
            // if the token endpoint does not return a 'scope' value, the