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

src/Cursor.php 2 locations

@@ 654-663 (lines=10) @@
651
        return $this->collection->hydrate($mongoDocument, $this->isDocumentPoolUsed());
652
    }
653
654
    public function map($handler)
655
    {
656
        $result = array();
657
658
        foreach($this as $id => $document) {
659
            $result[$id] = $handler($document);
660
        }
661
662
        return $result;
663
    }
664
665
    public function filter($handler)
666
    {
@@ 665-678 (lines=14) @@
662
        return $result;
663
    }
664
665
    public function filter($handler)
666
    {
667
        $result = array();
668
669
        foreach($this as $id => $document) {
670
            if(!$handler($document)) {
671
                continue;
672
            }
673
674
            $result[$id] = $document;
675
        }
676
677
        return $result;
678
    }
679
680
    /**
681
     * Get result set of documents.