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

src/Api/ConnectionsModule.php 2 locations

@@ 149-154 (lines=6) @@
146
            return new ApiErrorResponse('connect', 'user or certificate does not exist');
147
        }
148
149
        if ($result['user_is_disabled']) {
150
            $msg = 'unable to connect, user account is disabled';
151
            $this->storage->addUserMessage($result['user_id'], 'error', $msg, new DateTime('now'));
152
153
            return new ApiErrorResponse('connect', $msg);
154
        }
155
156
        if ($result['certificate_is_disabled']) {
157
            $msg = sprintf('unable to connect, certificate "%s" is disabled', $result['display_name']);
@@ 156-161 (lines=6) @@
153
            return new ApiErrorResponse('connect', $msg);
154
        }
155
156
        if ($result['certificate_is_disabled']) {
157
            $msg = sprintf('unable to connect, certificate "%s" is disabled', $result['display_name']);
158
            $this->storage->addUserMessage($result['user_id'], 'error', $msg, new DateTime('now'));
159
160
            return new ApiErrorResponse('connect', $msg);
161
        }
162
163
        return $this->verifyAcl($profileId, $result['user_id']);
164
    }