Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 894-896 (lines=3) @@
891
            foreach ($from_table_Arr as $from_table) {
892
                $useSelectLabels = false;
893
                $useAltSelectLabels = false;
894
                if ($useTablePrefix && !$dontPrefixFirstTable && $counter != 1 || $counter === 1) {
895
                    $tablePrefix = $from_table . '_';
896
                }
897
                $counter = 1;
898
                if (is_array($GLOBALS['TCA'][$from_table])) {
899
                    $labelField = $GLOBALS['TCA'][$from_table]['ctrl']['label'];

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

@@ 1032-1034 (lines=3) @@
1029
            $tablePrefix = '';
1030
            $labelFieldSelect = [];
1031
            foreach ($from_table_Arr as $from_table) {
1032
                if ($useTablePrefix && !$dontPrefixFirstTable && $counter != 1 || $counter == 1) {
1033
                    $tablePrefix = $from_table . '_';
1034
                }
1035
                $counter = 1;
1036
                if (is_array($GLOBALS['TCA'][$from_table])) {
1037
                    $labelField = $GLOBALS['TCA'][$from_table]['ctrl']['label'];