Code Duplication    Length = 7-7 lines in 2 locations

typo3/sysext/core/Classes/Database/QueryView.php 2 locations

@@ 1186-1192 (lines=7) @@
1183
                && $fieldName !== 'pid'
1184
                && $fieldName !== 'deleted'
1185
            ) {
1186
                if ($GLOBALS['SOBE']->MOD_SETTINGS['search_result_labels']) {
1187
                    $title = htmlspecialchars($this->languageService->sL($conf['columns'][$fieldName]['label']
1188
                        ? $conf['columns'][$fieldName]['label']
1189
                        : $fieldName));
1190
                } else {
1191
                    $title = htmlspecialchars($this->languageService->sL($fieldName));
1192
                }
1193
                $tableHeader[] = '<th>' . $title . '</th>';
1194
            }
1195
        }
@@ 1219-1225 (lines=7) @@
1216
            if (GeneralUtility::inList($SET['queryFields'], $fieldName)
1217
                || !$SET['queryFields'] && $fieldName !== 'pid') {
1218
                if (!$out) {
1219
                    if ($GLOBALS['SOBE']->MOD_SETTINGS['search_result_labels']) {
1220
                        $out = htmlspecialchars($this->languageService->sL($conf['columns'][$fieldName]['label']
1221
                            ? $conf['columns'][$fieldName]['label']
1222
                            : $fieldName));
1223
                    } else {
1224
                        $out = htmlspecialchars($this->languageService->sL($fieldName));
1225
                    }
1226
                } else {
1227
                    if ($GLOBALS['SOBE']->MOD_SETTINGS['search_result_labels']) {
1228
                        $out .= ',' . htmlspecialchars($this->languageService->sL(($conf['columns'][$fieldName]['label']