Code Duplication    Length = 4-8 lines in 2 locations

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

@@ 477-480 (lines=4) @@
474
        }
475
476
        $labelPrefix = '';
477
        if (!empty($result['processedTca']['columns'][$fieldName]['config']['foreign_table_prefix'])) {
478
            $labelPrefix = $result['processedTca']['columns'][$fieldName]['config']['foreign_table_prefix'];
479
            $labelPrefix = $languageService->sL($labelPrefix);
480
        }
481
482
        $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
483
        $fileRepository = GeneralUtility::makeInstance(FileRepository::class);

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

@@ 131-138 (lines=8) @@
128
        $childTableName = $result['processedTca']['columns'][$fieldName]['config']['foreign_table'];
129
130
        $connectedUidsOfLocalizedOverlay = [];
131
        if ($result['command'] === 'edit') {
132
            $connectedUidsOfLocalizedOverlay = $this->resolveConnectedRecordUids(
133
                $result['processedTca']['columns'][$fieldName]['config'],
134
                $result['tableName'],
135
                $result['databaseRow']['uid'],
136
                $result['databaseRow'][$fieldName]
137
            );
138
        }
139
        $result['databaseRow'][$fieldName] = implode(',', $connectedUidsOfLocalizedOverlay);
140
        if ($result['inlineCompileExistingChildren']) {
141
            $tableNameWithDefaultRecords = $result['tableName'];