Code Duplication    Length = 5-5 lines in 2 locations

typo3/sysext/core/Classes/Migrations/TcaMigration.php 2 locations

@@ 947-951 (lines=5) @@
944
    protected function migrateTranslationTable(array $tca): array
945
    {
946
        foreach ($tca as $table => &$tableDefinition) {
947
            if (!empty($tableDefinition['ctrl']['transForeignTable'])) {
948
                unset($tableDefinition['ctrl']['transForeignTable']);
949
                $this->messages[] = 'The TCA setting \'transForeignTable\' was removed '
950
                    . 'in TCA ' . $table . '[\'ctrl\'][\'transForeignTable\']';
951
            }
952
            if (!empty($tableDefinition['ctrl']['transOrigPointerTable'])) {
953
                unset($tableDefinition['ctrl']['transOrigPointerTable']);
954
                $this->messages[] = 'The TCA setting \'transOrigPointerTable\' was removed '
@@ 952-956 (lines=5) @@
949
                $this->messages[] = 'The TCA setting \'transForeignTable\' was removed '
950
                    . 'in TCA ' . $table . '[\'ctrl\'][\'transForeignTable\']';
951
            }
952
            if (!empty($tableDefinition['ctrl']['transOrigPointerTable'])) {
953
                unset($tableDefinition['ctrl']['transOrigPointerTable']);
954
                $this->messages[] = 'The TCA setting \'transOrigPointerTable\' was removed '
955
                    . 'in TCA ' . $table . '[\'ctrl\'][\'transOrigPointerTable\']';
956
            }
957
        }
958
        return $tca;
959
    }