Code Duplication    Length = 11-11 lines in 2 locations

typo3/sysext/frontend/Classes/ContentObject/Menu/ImageMenuContentObject.php 2 locations

@@ 123-133 (lines=11) @@
120
                                }
121
                                // This code goes one level in if the object is an image. If 'file' and/or 'mask' appears to be GIFBUILDER-objects, they are both searched for TEXT objects, and if a textobj is found, it's checked with the currently loaded record!!
122
                                if ($theValue === 'IMAGE') {
123
                                    if ($theValArr['file'] === 'GIFBUILDER') {
124
                                        $temp_sKeyArray = ArrayUtility::filterAndSortByNumericKeys($theValArr['file.']);
125
                                        foreach ($temp_sKeyArray as $temp_theKey) {
126
                                            if ($theValArr['mask.'][$temp_theKey] === 'TEXT') {
127
                                                $gifCreator->data = $this->menuArr[$key] ?: [];
128
                                                $theValArr['mask.'][$temp_theKey . '.'] = $gifCreator->checkTextObj($theValArr['mask.'][$temp_theKey . '.']);
129
                                                // If this is not done it seems that imageMaps will be rendered wrong!!
130
                                                unset($theValArr['mask.'][$temp_theKey . '.']['text.']);
131
                                            }
132
                                        }
133
                                    }
134
                                    if ($theValArr['mask'] === 'GIFBUILDER') {
135
                                        $temp_sKeyArray = ArrayUtility::filterAndSortByNumericKeys($theValArr['mask.']);
136
                                        foreach ($temp_sKeyArray as $temp_theKey) {
@@ 134-144 (lines=11) @@
131
                                            }
132
                                        }
133
                                    }
134
                                    if ($theValArr['mask'] === 'GIFBUILDER') {
135
                                        $temp_sKeyArray = ArrayUtility::filterAndSortByNumericKeys($theValArr['mask.']);
136
                                        foreach ($temp_sKeyArray as $temp_theKey) {
137
                                            if ($theValArr['mask.'][$temp_theKey] === 'TEXT') {
138
                                                $gifCreator->data = $this->menuArr[$key] ?: [];
139
                                                $theValArr['mask.'][$temp_theKey . '.'] = $gifCreator->checkTextObj($theValArr['mask.'][$temp_theKey . '.']);
140
                                                // if this is not done it seems that imageMaps will be rendered wrong!!
141
                                                unset($theValArr['mask.'][$temp_theKey . '.']['text.']);
142
                                            }
143
                                        }
144
                                    }
145
                                }
146
                                // Checks if disabled is set...
147
                                $setObjFlag = 1;