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

src/DocumentStorage.php 2 locations

@@ 54-62 (lines=9) @@
51
    /**
52
     * Get the full absolute location of the document on the filesystem.
53
     */
54
    public function getDocumentPath(Path $p)
55
    {
56
        $documentPath = $this->baseDir.$p->getPath();
57
        if (!is_readable($documentPath)) {
58
            throw new DocumentStorageException('unable to read document');
59
        }
60
61
        return $documentPath;
62
    }
63
64
    public function getDocument(Path $p)
65
    {
@@ 203-209 (lines=7) @@
200
        return 0 === count($entries);
201
    }
202
203
    private function deleteFolder(Path $p)
204
    {
205
        $folderPath = $this->baseDir.$p->getPath();
206
        if (false === @rmdir($folderPath)) {
207
            throw new DocumentStorageException('unable to delete folder');
208
        }
209
    }
210
}
211