Code Duplication    Length = 3-7 lines in 2 locations

typo3/sysext/core/Classes/Database/RelationHandler.php 1 location

@@ 272-274 (lines=3) @@
269
        $this->MM_match_fields = is_array($conf['MM_match_fields']) ? $conf['MM_match_fields'] : [];
270
        $this->MM_insert_fields = is_array($conf['MM_insert_fields']) ? $conf['MM_insert_fields'] : $this->MM_match_fields;
271
        $this->currentTable = $currentTable;
272
        if (!empty($conf['MM_oppositeUsage']) && is_array($conf['MM_oppositeUsage'])) {
273
            $this->MM_oppositeUsage = $conf['MM_oppositeUsage'];
274
        }
275
        if ($this->MM_is_foreign) {
276
            $tmp = $conf['type'] === 'group' ? $conf['allowed'] : $conf['foreign_table'];
277
            // Normally, $conf['allowed'] can contain a list of tables,

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

@@ 542-548 (lines=7) @@
539
     */
540
    public function insertPositionIcon($row, $vv, $kk, $moveUid, $pid)
541
    {
542
        if (is_array($row) && !empty($row['uid'])) {
543
            // Use record uid for the hash when inserting after this content element
544
            $uid = $row['uid'];
545
        } else {
546
            // No uid means insert at first position in the column
547
            $uid = '';
548
        }
549
        $cc = hexdec(substr(md5($uid . '-' . $vv . '-' . $kk), 0, 4));
550
        return '<a href="#" onclick="' . htmlspecialchars($this->onClickInsertRecord($row, $vv, $moveUid, $pid, $this->cur_sys_language)) . '" data-dismiss="modal">' . '<i class="t3-icon fa fa-long-arrow-left" name="mImgEnd' . $cc . '" title="' . htmlspecialchars($this->getLanguageService()->getLL($this->l_insertNewRecordHere)) . '"></i></a>';
551
    }