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

@@ 724-733 (lines=10) @@
721
     * @param callable $handler
722
     * @return array
723
     */
724
    public function map($handler)
725
    {
726
        $result = array();
727
728
        foreach ($this as $id => $document) {
729
            $result[$id] = $handler($document);
730
        }
731
732
        return $result;
733
    }
734
735
    /**
736
     * Filter documents in cursor by condition in callable
@@ 741-754 (lines=14) @@
738
     * @param callable $handler
739
     * @return array
740
     */
741
    public function filter($handler)
742
    {
743
        $result = array();
744
745
        foreach ($this as $id => $document) {
746
            if (!$handler($document)) {
747
                continue;
748
            }
749
750
            $result[$id] = $document;
751
        }
752
753
        return $result;
754
    }
755
756
    /**
757
     * Get result set of documents.