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

src/Http/Response.php 1 location

@@ 109-112 (lines=4) @@
106
            throw new ResponseException(sprintf('response MUST have JSON content type'));
107
        }
108
        $decodedJson = json_decode($this->responseBody, true);
109
        if (is_null($decodedJson) && JSON_ERROR_NONE !== json_last_error()) {
110
            $errorMsg = function_exists('json_last_error_msg') ? json_last_error_msg() : json_last_error();
111
            throw new ResponseException(sprintf('unable to decode JSON: %s', $errorMsg));
112
        }
113
114
        return $decodedJson;
115
    }

src/AccessToken.php 1 location

@@ 223-226 (lines=4) @@
220
    public static function fromJson($jsonString)
221
    {
222
        $tokenData = json_decode($jsonString, true);
223
        if (is_null($tokenData) && JSON_ERROR_NONE !== json_last_error()) {
224
            $errorMsg = function_exists('json_last_error_msg') ? json_last_error_msg() : json_last_error();
225
            throw new AccessTokenException(sprintf('unable to decode JSON from storage: %s', $errorMsg));
226
        }
227
228
        return new self($tokenData);
229
    }