Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 104-111 (lines=8) @@
101
                                    if ($theValArr['imgMap.']['target'] === '') {
102
                                        $theValArr['imgMap.']['target'] = $LD['target'];
103
                                    }
104
                                    if (is_array($theValArr['imgMap.']['altText.'])) {
105
                                        $cObj = GeneralUtility::makeInstance(ContentObjectRenderer::class);
106
                                        $cObj->start($cObjData, 'pages');
107
                                        if (isset($theValArr['imgMap.']['altText.'])) {
108
                                            $theValArr['imgMap.']['altText'] = $cObj->stdWrap($theValArr['imgMap.']['altText'], $theValArr['imgMap.']['altText.']);
109
                                        }
110
                                        unset($theValArr['imgMap.']['altText.']);
111
                                    }
112
                                    if (is_array($theValArr['imgMap.']['titleText.'])) {
113
                                        $cObj = GeneralUtility::makeInstance(ContentObjectRenderer::class);
114
                                        $cObj->start($cObjData, 'pages');
@@ 112-119 (lines=8) @@
109
                                        }
110
                                        unset($theValArr['imgMap.']['altText.']);
111
                                    }
112
                                    if (is_array($theValArr['imgMap.']['titleText.'])) {
113
                                        $cObj = GeneralUtility::makeInstance(ContentObjectRenderer::class);
114
                                        $cObj->start($cObjData, 'pages');
115
                                        if (isset($theValArr['imgMap.']['titleText.'])) {
116
                                            $theValArr['imgMap.']['titleText'] = $cObj->stdWrap($theValArr['imgMap.']['titleText'], $theValArr['imgMap.']['titleText.']);
117
                                        }
118
                                        unset($theValArr['imgMap.']['titleText.']);
119
                                    }
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') {