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 = 21-22 lines in 3 locations

src/Bindings/Browser/AbstractBrowserBindingService.php 3 locations

@@ 102-123 (lines=22) @@
99
     * @throws CmisObjectNotFoundException
100
     * @return Url
101
     */
102
    protected function getObjectUrl($repositoryId, $objectId, $selector = null)
103
    {
104
        $result = $this->getRepositoryUrlCache()->getObjectUrl($repositoryId, $objectId, $selector);
105
106
        if ($result === null) {
107
            $this->getRepositoriesInternal($repositoryId);
108
            $result = $this->getRepositoryUrlCache()->getObjectUrl($repositoryId, $objectId, $selector);
109
        }
110
111
        if ($result === null) {
112
            throw new CmisObjectNotFoundException(
113
                sprintf(
114
                    'Unknown Object! Repository: "%s" | Object: "%s" | Selector: "%s"',
115
                    $repositoryId,
116
                    $objectId,
117
                    $selector
118
                )
119
            );
120
        }
121
122
        return $result;
123
    }
124
125
    /**
126
     * Returns the repository URL cache or creates a new cache if it doesn't
@@ 376-397 (lines=22) @@
373
     * @throws CmisObjectNotFoundException
374
     * @return Url
375
     */
376
    protected function getPathUrl($repositoryId, $path, $selector = null)
377
    {
378
        $result = $this->getRepositoryUrlCache()->getPathUrl($repositoryId, $path, $selector);
379
380
        if ($result === null) {
381
            $this->getRepositoriesInternal($repositoryId);
382
            $result = $this->getRepositoryUrlCache()->getPathUrl($repositoryId, $path, $selector);
383
        }
384
385
        if ($result === null) {
386
            throw new CmisObjectNotFoundException(
387
                sprintf(
388
                    'Unknown path! Repository: "%s" | Path: "%s" | Selector: "%s"',
389
                    $repositoryId,
390
                    $path,
391
                    $selector
392
                )
393
            );
394
        }
395
396
        return $result;
397
    }
398
399
// ---- URL ----
400
@@ 523-543 (lines=21) @@
520
     * @throws CmisObjectNotFoundException
521
     * @return Url
522
     */
523
    protected function getRepositoryUrl($repositoryId, $selector = null)
524
    {
525
        $result = $this->getRepositoryUrlCache()->getRepositoryUrl($repositoryId, $selector);
526
527
        if ($result === null) {
528
            $this->getRepositoriesInternal($repositoryId);
529
            $result = $this->getRepositoryUrlCache()->getRepositoryUrl($repositoryId, $selector);
530
        }
531
532
        if ($result === null) {
533
            throw new CmisObjectNotFoundException(
534
                sprintf(
535
                    'Unknown repository! Repository: "%s" | Selector: "%s"',
536
                    $repositoryId,
537
                    $selector
538
                )
539
            );
540
        }
541
542
        return $result;
543
    }
544
545
    /**
546
     * Converts a Properties list into an array that can be used for the CMIS request.