Code Duplication    Length = 4-5 lines in 2 locations

typo3/sysext/backend/Classes/Tree/View/BrowseTreeView.php 1 location

@@ 127-131 (lines=5) @@
124
        $theIcon = '';
125
        if (!$this->ext_IconMode) {
126
            $theIcon = BackendUtility::wrapClickMenuOnIcon($icon, $this->treeName, $this->getId($row), 0);
127
        } elseif ($this->ext_IconMode === 'titlelink') {
128
            $aOnClick = 'return jumpTo(' . GeneralUtility::quoteJSvalue($this->getJumpToParam($row)) . ',this,'
129
                        . GeneralUtility::quoteJSvalue($this->domIdPrefix . $this->getId($row)) . ',' . $this->bank . ');';
130
            $theIcon = '<a href="#" onclick="' . htmlspecialchars($aOnClick) . '">' . $icon . '</a>';
131
        }
132
        return $theIcon;
133
    }
134

typo3/sysext/backend/Classes/Tree/View/FolderTreeView.php 1 location

@@ 184-187 (lines=4) @@
181
                $tableName = $this->getTableNameForClickMenu($folderObject);
182
                $theFolderIcon = BackendUtility::wrapClickMenuOnIcon($icon, $tableName, $folderObject->getCombinedIdentifier(), 'tree');
183
            }
184
        } elseif ($this->ext_IconMode === 'titlelink') {
185
            $aOnClick = 'return jumpTo(' . GeneralUtility::quoteJSvalue($this->getJumpToParam($folderObject)) . ',this,' . GeneralUtility::quoteJSvalue($this->domIdPrefix . $this->getId($folderObject)) . ',' . $this->bank . ');';
186
            $theFolderIcon = '<a href="#" onclick="' . htmlspecialchars($aOnClick) . '">' . $icon . '</a>';
187
        }
188
        return $theFolderIcon;
189
    }
190