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

@@ 360-368 (lines=9) @@
357
     *
358
     * @return Document|null
359
     */
360
    public function getDocumentByReference(array $ref, $useDocumentPool = true)
361
    {
362
        $documentArray = $this->getMongoDB()->getDBRef($ref);
363
        if (null === $documentArray) {
364
            return null;
365
        }
366
367
        return $this->getCollection($ref['$ref'])->hydrate($documentArray, $useDocumentPool);
368
    }
369
370
    /**
371
     * Get instance of GridFS