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

@@ 661-670 (lines=10) @@
658
     * @param callable $handler
659
     * @return array
660
     */
661
    public function map($handler)
662
    {
663
        $result = array();
664
665
        foreach ($this as $id => $document) {
666
            $result[$id] = $handler($document);
667
        }
668
669
        return $result;
670
    }
671
672
    /**
673
     * Filter documents in cursor by condition in callable
@@ 678-691 (lines=14) @@
675
     * @param callable $handler
676
     * @return array
677
     */
678
    public function filter($handler)
679
    {
680
        $result = array();
681
682
        foreach ($this as $id => $document) {
683
            if (!$handler($document)) {
684
                continue;
685
            }
686
687
            $result[$id] = $document;
688
        }
689
690
        return $result;
691
    }
692
693
    /**
694
     * Get result set of documents.