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

@@ 709-718 (lines=10) @@
706
        return $this->collection->hydrate($mongoDocument, $this->isDocumentPoolUsed());
707
    }
708
709
    public function map($handler)
710
    {
711
        $result = array();
712
713
        foreach($this as $id => $document) {
714
            $result[$id] = $handler($document);
715
        }
716
717
        return $result;
718
    }
719
720
    public function filter($handler)
721
    {
@@ 720-733 (lines=14) @@
717
        return $result;
718
    }
719
720
    public function filter($handler)
721
    {
722
        $result = array();
723
724
        foreach($this as $id => $document) {
725
            if(!$handler($document)) {
726
                continue;
727
            }
728
729
            $result[$id] = $document;
730
        }
731
732
        return $result;
733
    }
734
735
    /**
736
     * Get result set of documents.