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

@@ 700-709 (lines=10) @@
697
        return $this->collection->hydrate($mongoDocument, $this->isDocumentPoolUsed());
698
    }
699
700
    public function map($handler)
701
    {
702
        $result = array();
703
704
        foreach($this as $id => $document) {
705
            $result[$id] = $handler($document);
706
        }
707
708
        return $result;
709
    }
710
711
    public function filter($handler)
712
    {
@@ 711-724 (lines=14) @@
708
        return $result;
709
    }
710
711
    public function filter($handler)
712
    {
713
        $result = array();
714
715
        foreach($this as $id => $document) {
716
            if(!$handler($document)) {
717
                continue;
718
            }
719
720
            $result[$id] = $document;
721
        }
722
723
        return $result;
724
    }
725
726
    /**
727
     * Get result set of documents.