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

src/Collection.php 1 location

@@ 604-612 (lines=9) @@
601
     *
602
     * @return Document|null
603
     */
604
    public function getDocumentByReference(array $ref, $useDocumentPool = true)
605
    {
606
        $documentArray = $this->_mongoCollection->getDBRef($ref);
607
        if (null === $documentArray) {
608
            return null;
609
        }
610
611
        return $this->hydrate($documentArray, $useDocumentPool);
612
    }
613
614
    /**
615
     * Get document by id directly omitting cache

src/Database.php 1 location

@@ 344-352 (lines=9) @@
341
     *
342
     * @return Document|null
343
     */
344
    public function getDocumentByReference(array $ref, $useDocumentPool = true)
345
    {
346
        $documentArray = $this->mongoDB->getDBRef($ref);
347
        if (null === $documentArray) {
348
            return null;
349
        }
350
351
        return $this->getCollection($ref['$ref'])->hydrate($documentArray, $useDocumentPool);
352
    }
353
354
    /**
355
     * Get instance of GridFS