Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 174-179 (lines=6) @@
171
                // If distributeH/W is specified
172
                if (!empty($totalWH) && ($this->mconf['distributeX'] || $this->mconf['distributeY'])) {
173
                    $tempXY = explode(',', $gifCreator->setup['XY']);
174
                    if ($this->mconf['distributeX']) {
175
                        $diff = $this->mconf['distributeX'] - $totalWH['W_total'] - $distributeAccu['W'];
176
                        $compensate = round($diff / ($items - $c + 1));
177
                        $distributeAccu['W'] += $compensate;
178
                        $tempXY[0] = $totalWH['W'][$key] + $compensate;
179
                    }
180
                    if ($this->mconf['distributeY']) {
181
                        $diff = $this->mconf['distributeY'] - $totalWH['H_total'] - $distributeAccu['H'];
182
                        $compensate = round($diff / ($items - $c + 1));
@@ 180-185 (lines=6) @@
177
                        $distributeAccu['W'] += $compensate;
178
                        $tempXY[0] = $totalWH['W'][$key] + $compensate;
179
                    }
180
                    if ($this->mconf['distributeY']) {
181
                        $diff = $this->mconf['distributeY'] - $totalWH['H_total'] - $distributeAccu['H'];
182
                        $compensate = round($diff / ($items - $c + 1));
183
                        $distributeAccu['H'] += $compensate;
184
                        $tempXY[1] = $totalWH['H'][$key] + $compensate;
185
                    }
186
                    // Regenerate the new values...
187
                    $val['XY'] = implode(',', $tempXY);
188
                    $gifCreator = GeneralUtility::makeInstance(GifBuilder::class);