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

src/ApiModule.php 2 locations

@@ 173-181 (lines=9) @@
170
            $request->getHeader('If-None-Match', false, null)
171
        );
172
173
        if (null !== $requestedVersion) {
174
            if (in_array($folderVersion, $requestedVersion)) {
175
                //return new RemoteStorageResponse($request, 304, $folderVersion);
176
                $response = new Response(304, 'application/ld+json');
177
                $response->addHeader('ETag', '"'.$folderVersion.'"');
178
179
                return $response;
180
            }
181
        }
182
183
        $rsr = new Response(200, 'application/ld+json');
184
        $rsr->addHeader('ETag', '"'.$folderVersion.'"');
@@ 223-230 (lines=8) @@
220
        );
221
        $documentContentType = $this->remoteStorage->getContentType($path);
222
223
        if (null !== $requestedVersion) {
224
            if (in_array($documentVersion, $requestedVersion)) {
225
                $response = new Response(304, $documentContentType);
226
                $response->addHeader('ETag', '"'.$documentVersion.'"');
227
228
                return $response;
229
            }
230
        }
231
232
        $rsr = new Response(200, $documentContentType);
233
        $rsr->addHeader('ETag', '"'.$documentVersion.'"');