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

@@ 146-154 (lines=9) @@
143
            $request->getHeader('If-None-Match', false, null)
144
        );
145
146
        if (null !== $requestedVersion) {
147
            if (in_array($folderVersion, $requestedVersion)) {
148
                //return new RemoteStorageResponse($request, 304, $folderVersion);
149
                $response = new Response(304, 'application/ld+json');
150
                $response->addHeader('ETag', '"'.$folderVersion.'"');
151
152
                return $response;
153
            }
154
        }
155
156
        $rsr = new Response(200, 'application/ld+json');
157
        $rsr->addHeader('ETag', '"'.$folderVersion.'"');
@@ 196-203 (lines=8) @@
193
        );
194
        $documentContentType = $this->remoteStorage->getContentType($path);
195
196
        if (null !== $requestedVersion) {
197
            if (in_array($documentVersion, $requestedVersion)) {
198
                $response = new Response(304, $documentContentType);
199
                $response->addHeader('ETag', '"'.$documentVersion.'"');
200
201
                return $response;
202
            }
203
        }
204
205
        $rsr = new Response(200, $documentContentType);
206
        $rsr->addHeader('ETag', '"'.$documentVersion.'"');