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/AccessToken.php 1 location

@@ 144-147 (lines=4) @@
141
    public static function fromStorage($tokenString)
142
    {
143
        $tokenData = json_decode($tokenString, true);
144
        if (is_null($tokenData) && JSON_ERROR_NONE !== json_last_error()) {
145
            $errorMsg = function_exists('json_last_error_msg') ? json_last_error_msg() : json_last_error();
146
            throw new AccessTokenException(sprintf('unable to decode JSON from storage: %s', $errorMsg));
147
        }
148
149
        return new self($tokenData);
150
    }

src/Http/Response.php 1 location

@@ 91-94 (lines=4) @@
88
            throw new RuntimeException(sprintf('response MUST have JSON content type'));
89
        }
90
        $decodedJson = json_decode($this->responseBody, true);
91
        if (is_null($decodedJson) && JSON_ERROR_NONE !== json_last_error()) {
92
            $errorMsg = function_exists('json_last_error_msg') ? json_last_error_msg() : json_last_error();
93
            throw new RuntimeException(sprintf('unable to decode JSON: %s', $errorMsg));
94
        }
95
96
        return $decodedJson;
97
    }