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/fkooman/RemoteStorage/RemoteStorageService.php 2 locations

@@ 294-302 (lines=9) @@
291
            $request->getHeader('If-None-Match')
292
        );
293
294
        if (null !== $requestedVersion) {
295
            if (in_array($folderVersion, $requestedVersion)) {
296
                //return new RemoteStorageResponse($request, 304, $folderVersion);
297
                $response = new Response(304, 'application/ld+json');
298
                $response->setHeader('ETag', '"'.$folderVersion.'"');
299
300
                return $response;
301
            }
302
        }
303
304
        $rsr = new Response(200, 'application/ld+json');
305
        $rsr->setHeader('ETag', '"'.$folderVersion.'"');
@@ 343-350 (lines=8) @@
340
        );
341
        $documentContentType = $this->remoteStorage->getContentType($path);
342
343
        if (null !== $requestedVersion) {
344
            if (in_array($documentVersion, $requestedVersion)) {
345
                $response = new Response(304, $documentContentType);
346
                $response->setHeader('ETag', '"'.$documentVersion.'"');
347
348
                return $response;
349
            }
350
        }
351
352
        $rsr = new Response(200, $documentContentType);
353
        $rsr->setHeader('ETag', '"'.$documentVersion.'"');