Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 747-752 (lines=6) @@
744
                        }
745
                    }
746
                    // Add external MP params, then the row:
747
                    if (!empty($row)) {
748
                        if ($MP) {
749
                            $row['_MP_PARAM'] = $MP . ($row['_MP_PARAM'] ? ',' . $row['_MP_PARAM'] : '');
750
                        }
751
                        $menuItems[$row['uid']] = $this->sys_page->getPageOverlay($row);
752
                    }
753
                }
754
            }
755
        }
@@ 814-819 (lines=6) @@
811
                $this->sys_page->versionOL('pages', $row, true);
812
            }
813
            // Add external MP params, then the row:
814
            if (isset($row) && is_array($row)) {
815
                if ($MP) {
816
                    $row['_MP_PARAM'] = $MP . ($row['_MP_PARAM'] ? ',' . $row['_MP_PARAM'] : '');
817
                }
818
                $menuItems[] = $this->sys_page->getPageOverlay($row);
819
            }
820
        }
821
        return $menuItems;
822
    }