Code Duplication    Length = 6-6 lines in 2 locations

typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php 2 locations

@@ 891-896 (lines=6) @@
888
            'orderBy' => $sortingField ?: $sortField . ' DESC',
889
            'max' => $limit
890
        ]);
891
        while ($row = $statement->fetch()) {
892
            $tsfe->sys_page->versionOL('pages', $row, true);
893
            if (is_array($row)) {
894
                $menuItems[$row['uid']] = $this->sys_page->getPageOverlay($row);
895
            }
896
        }
897
898
        return $menuItems;
899
    }
@@ 1027-1032 (lines=6) @@
1024
            }
1025
1026
            $result = $queryBuilder->execute();
1027
            while ($row = $result->fetch()) {
1028
                $tsfe->sys_page->versionOL('pages', $row, true);
1029
                if (is_array($row)) {
1030
                    $menuItems[$row['uid']] = $this->sys_page->getPageOverlay($row);
1031
                }
1032
            }
1033
        }
1034
1035
        return $menuItems;