Code Duplication    Length = 3-3 lines in 2 locations

typo3/sysext/core/Classes/DataHandling/ItemProcessingService.php 1 location

@@ 60-62 (lines=3) @@
57
        } catch (\Exception $exception) {
58
            $languageService = $this->getLanguageService();
59
            $fieldLabel = $field;
60
            if (isset($GLOBALS['TCA'][$table]['columns'][$field]['label'])) {
61
                $fieldLabel = $languageService->sL($GLOBALS['TCA'][$table]['columns'][$field]['label']);
62
            }
63
            $message = sprintf(
64
                $languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:error.items_proc_func_error'),
65
                $fieldLabel,

typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php 1 location

@@ 774-776 (lines=3) @@
771
            foreach ($flexFormArray as $tableField => $flexForms) {
772
                // Prefix for field label, e.g. "Plugin Options:"
773
                $labelPrefix = '';
774
                if (!empty($GLOBALS['TCA'][$table]['columns'][$tableField]['label'])) {
775
                    $labelPrefix = $languageService->sL($GLOBALS['TCA'][$table]['columns'][$tableField]['label']);
776
                }
777
                // Get all sheets
778
                foreach ($flexForms as $extIdent => $extConf) {
779
                    // Get all fields in sheet