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

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

src/Database.php 1 location

@@ 370-378 (lines=9) @@
367
     *
368
     * @return Document|null
369
     */
370
    public function getDocumentByReference(array $ref, $useDocumentPool = true)
371
    {
372
        $documentArray = $this->getMongoDB()->getDBRef($ref);
373
        if (null === $documentArray) {
374
            return null;
375
        }
376
377
        return $this->getCollection($ref['$ref'])->hydrate($documentArray, $useDocumentPool);
378
    }
379
380
    /**
381
     * Get instance of GridFS