Code Duplication    Length = 12-12 lines in 2 locations

typo3/sysext/backend/Classes/View/PageLayoutView.php 2 locations

@@ 1963-1974 (lines=12) @@
1960
                    $moveButtonContent = '';
1961
                    $displayMoveButtons = false;
1962
                    // Move element up:
1963
                    if ($this->tt_contentData['prev'][$row['uid']]) {
1964
                        $params = '&cmd[tt_content][' . $row['uid'] . '][move]=' . $this->tt_contentData['prev'][$row['uid']];
1965
                        $moveButtonContent .= '<a class="btn btn-default" href="'
1966
                            . htmlspecialchars(BackendUtility::getLinkToDataHandlerAction($params))
1967
                            . '" title="' . htmlspecialchars($this->getLanguageService()->getLL('moveUp')) . '">'
1968
                            . $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render() . '</a>';
1969
                        if (!$dragDropEnabled) {
1970
                            $displayMoveButtons = true;
1971
                        }
1972
                    } else {
1973
                        $moveButtonContent .= '<span class="btn btn-default disabled">' . $this->iconFactory->getIcon('empty-empty', Icon::SIZE_SMALL)->render() . '</span>';
1974
                    }
1975
                    // Move element down:
1976
                    if ($this->tt_contentData['next'][$row['uid']]) {
1977
                        $params = '&cmd[tt_content][' . $row['uid'] . '][move]= ' . $this->tt_contentData['next'][$row['uid']];
@@ 1976-1987 (lines=12) @@
1973
                        $moveButtonContent .= '<span class="btn btn-default disabled">' . $this->iconFactory->getIcon('empty-empty', Icon::SIZE_SMALL)->render() . '</span>';
1974
                    }
1975
                    // Move element down:
1976
                    if ($this->tt_contentData['next'][$row['uid']]) {
1977
                        $params = '&cmd[tt_content][' . $row['uid'] . '][move]= ' . $this->tt_contentData['next'][$row['uid']];
1978
                        $moveButtonContent .= '<a class="btn btn-default" href="'
1979
                            . htmlspecialchars(BackendUtility::getLinkToDataHandlerAction($params))
1980
                            . '" title="' . htmlspecialchars($this->getLanguageService()->getLL('moveDown')) . '">'
1981
                            . $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render() . '</a>';
1982
                        if (!$dragDropEnabled) {
1983
                            $displayMoveButtons = true;
1984
                        }
1985
                    } else {
1986
                        $moveButtonContent .= '<span class="btn btn-default disabled">' . $this->iconFactory->getIcon('empty-empty', Icon::SIZE_SMALL)->render() . '</span>';
1987
                    }
1988
                    if ($displayMoveButtons) {
1989
                        $out .= '<div class="btn-group btn-group-sm" role="group">' . $moveButtonContent . '</div>';
1990
                    }