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

src/Http/FormAuthenticationModule.php 1 location

@@ 54-56 (lines=3) @@
51
                $redirectTo = $request->getPostParameter('_form_auth_redirect_to');
52
53
                // validate the URL
54
                if (false === filter_var($redirectTo, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIRED)) {
55
                    throw new HttpException('invalid redirect_to URL', 400);
56
                }
57
                // extract the "host" part of the URL
58
                if (false === $redirectToHost = parse_url($redirectTo, PHP_URL_HOST)) {
59
                    throw new HttpException('invalid redirect_to URL, unable to extract host', 400);

src/OAuth/OAuthModule.php 1 location

@@ 160-162 (lines=3) @@
157
158
        // XXX we also should enforce HTTPS
159
        $redirectUri = $request->getQueryParameter('redirect_uri');
160
        if (false === filter_var($redirectUri, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED | FILTER_FLAG_PATH_REQUIRED)) {
161
            throw new HttpException('invalid redirect_uri', 400);
162
        }
163
        $responseType = $request->getQueryParameter('response_type');
164
        if ('token' !== $responseType) {
165
            throw new HttpException('invalid response_type', 400);