Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 946-959 (lines=14) @@
943
            }
944
        }
945
        if ($fieldSetup['type'] === 'multiple') {
946
            foreach ($fieldSetup['items'] as $key => $val) {
947
                if (substr($val[0], 0, 4) === 'LLL:') {
948
                    $value = $this->languageService->sL($val[0]);
949
                } else {
950
                    $value = $val[0];
951
                }
952
                if (GeneralUtility::inList($fieldValue, $val[1]) || $fieldValue == $val[1]) {
953
                    if (!$out) {
954
                        $out = htmlspecialchars($value);
955
                    } else {
956
                        $out .= $splitString . htmlspecialchars($value);
957
                    }
958
                }
959
            }
960
        }
961
        if ($fieldSetup['type'] === 'binary') {
962
            foreach ($fieldSetup['items'] as $Key => $val) {
@@ 979-992 (lines=14) @@
976
            $dontPrefixFirstTable = 0;
977
            $useTablePrefix = 0;
978
            if ($fieldSetup['items']) {
979
                foreach ($fieldSetup['items'] as $key => $val) {
980
                    if (substr($val[0], 0, 4) === 'LLL:') {
981
                        $value = $this->languageService->sL($val[0]);
982
                    } else {
983
                        $value = $val[0];
984
                    }
985
                    if (GeneralUtility::inList($fieldValue, $value) || $fieldValue == $value) {
986
                        if (!$out) {
987
                            $out = htmlspecialchars($value);
988
                        } else {
989
                            $out .= $splitString . htmlspecialchars($value);
990
                        }
991
                    }
992
                }
993
            }
994
            if (stristr($fieldSetup['allowed'], ',')) {
995
                $from_table_Arr = explode(',', $fieldSetup['allowed']);