Code Duplication    Length = 4-6 lines in 3 locations

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

@@ 1836-1841 (lines=6) @@
1833
                    if (isset($fieldConfig['defaultExtras'])) {
1834
                        $defaultExtrasArray = GeneralUtility::trimExplode(':', $fieldConfig['defaultExtras'], true);
1835
                        foreach ($defaultExtrasArray as $defaultExtrasSetting) {
1836
                            if ($defaultExtrasSetting === 'rte_only') {
1837
                                $this->messages[] = 'The defaultExtras setting \'rte_only\' in TCA table '
1838
                                    . $table . '[\'columns\'][\'' . $fieldName . '\'] has been dropped, the setting'
1839
                                    . ' is no longer supported';
1840
                                continue;
1841
                            }
1842
                            if ($defaultExtrasSetting === 'nowrap') {
1843
                                $fieldConfig['config']['wrap'] = 'off';
1844
                                $this->messages[] = 'The defaultExtras setting \'nowrap\' in TCA table '
@@ 1857-1860 (lines=4) @@
1854
                                $this->messages[] = 'The defaultExtras setting \'fixed-font\' in TCA table '
1855
                                    . $table . '[\'columns\'][\'' . $fieldName . '\'] has been migrated to TCA table '
1856
                                    . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\'][\'fixedFont\'] = true';
1857
                            } else {
1858
                                $this->messages[] = 'The defaultExtras setting \'' . $defaultExtrasSetting . '\' in TCA table '
1859
                                    . $table . '[\'columns\'][\'' . $fieldName . '\'] is unknown and has been dropped.';
1860
                            }
1861
                        }
1862
                        unset($fieldConfig['defaultExtras']);
1863
                    }
@@ 1875-1880 (lines=6) @@
1872
                            }
1873
                            $defaultExtrasArray = GeneralUtility::trimExplode(':', $overrideConfig['defaultExtras'], true);
1874
                            foreach ($defaultExtrasArray as $defaultExtrasSetting) {
1875
                                if ($defaultExtrasSetting === 'rte_only') {
1876
                                    $this->messages[] = 'The defaultExtras setting \'rte_only\' in TCA table '
1877
                                        . $table . '[\'types\'][\'' . $typeName . '\'][\'columnsOverrides\'][\'' . $fieldName . '\']'
1878
                                        . ' has been dropped, the setting is no longer supported';
1879
                                    continue;
1880
                                }
1881
                                if ($defaultExtrasSetting === 'nowrap') {
1882
                                    $overrideConfig['config']['wrap'] = 'off';
1883
                                    $this->messages[] = 'The defaultExtras setting \'nowrap\' in TCA table '