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

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