Code Duplication    Length = 7-11 lines in 3 locations

typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php 1 location

@@ 1032-1038 (lines=7) @@
1029
     * @return string The linked table label
1030
     * @deprecated since TYPO3 v9, will be removed in TYPO3 v10
1031
     */
1032
    public function linkWrapTable($table, $code)
1033
    {
1034
        if ($this->table !== $table) {
1035
            return '<a href="' . htmlspecialchars($this->listURL('', $table, 'firstElementNumber')) . '">' . $code . '</a>';
1036
        }
1037
        return '<a href="' . htmlspecialchars($this->listURL('', '', 'sortField,sortRev,table,firstElementNumber')) . '">' . $code . '</a>';
1038
    }
1039
1040
    /**
1041
     * Returns the title (based on $code) of a record (from table $table) with the proper link around (that is for 'pages'-records a link to the level of that record...)

typo3/sysext/backend/Classes/View/PageLayoutView.php 1 location

@@ 3601-3611 (lines=11) @@
3598
     * @param string $code Table label
3599
     * @return string The linked table label
3600
     */
3601
    public function linkWrapTable($table, $code)
3602
    {
3603
        if ($this->table !== $table) {
3604
            return '<a href="' . htmlspecialchars(
3605
                    $this->listURL('', $table, 'firstElementNumber')
3606
                ) . '">' . $code . '</a>';
3607
        }
3608
        return '<a href="' . htmlspecialchars(
3609
                $this->listURL('', '', 'sortField,sortRev,table,firstElementNumber')
3610
            ) . '">' . $code . '</a>';
3611
    }
3612
3613
    /**
3614
     * Returns the title (based on $code) of a record (from table $table) with the proper link around (that is for 'pages'-records a link to the level of that record...)

typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php 1 location

@@ 3474-3484 (lines=11) @@
3471
     * @param string $code Table label
3472
     * @return string The linked table label
3473
     */
3474
    public function linkWrapTable($table, $code)
3475
    {
3476
        if ($this->table !== $table) {
3477
            return '<a href="' . htmlspecialchars(
3478
                    $this->listURL('', $table, 'firstElementNumber')
3479
                ) . '">' . $code . '</a>';
3480
        }
3481
        return '<a href="' . htmlspecialchars(
3482
                $this->listURL('', '', 'sortField,sortRev,table,firstElementNumber')
3483
            ) . '">' . $code . '</a>';
3484
    }
3485
3486
    /**
3487
     * Returns the title (based on $code) of a record (from table $table) with the proper link around (that is for 'pages'-records a link to the level of that record...)