Code Duplication    Length = 5-5 lines in 2 locations

typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php 2 locations

@@ 595-599 (lines=5) @@
592
                $Fcolor = $conf['antiAlias'] ? $Fcolor : -$Fcolor;
593
                for ($a = 0; $a < $conf['iterations']; $a++) {
594
                    // If any kind of spacing applys, we use this function:
595
                    if ($spacing || $wordSpacing) {
596
                        $this->SpacedImageTTFText($im, $conf['fontSize'], $conf['angle'], $txtPos[0], $txtPos[1], $Fcolor, GeneralUtility::getFileAbsFileName($conf['fontFile']), $theText, $spacing, $wordSpacing, $conf['splitRendering.']);
597
                    } else {
598
                        $this->renderTTFText($im, $conf['fontSize'], $conf['angle'], $txtPos[0], $txtPos[1], $Fcolor, $conf['fontFile'], $theText, $conf['splitRendering.'], $conf);
599
                    }
600
                }
601
            } else {
602
                // NICETEXT::
@@ 620-624 (lines=5) @@
617
                imagefilledrectangle($maskImg, 0, 0, $newW, $newH, $Bcolor);
618
                $Fcolor = imagecolorallocate($maskImg, 0, 0, 0);
619
                // If any kind of spacing applies, we use this function:
620
                if ($spacing || $wordSpacing) {
621
                    $this->SpacedImageTTFText($maskImg, $conf['fontSize'], $conf['angle'], $txtPos[0], $txtPos[1], $Fcolor, GeneralUtility::getFileAbsFileName($conf['fontFile']), $theText, $spacing, $wordSpacing, $conf['splitRendering.'], $sF);
622
                } else {
623
                    $this->renderTTFText($maskImg, $conf['fontSize'], $conf['angle'], $txtPos[0], $txtPos[1], $Fcolor, $conf['fontFile'], $theText, $conf['splitRendering.'], $conf, $sF);
624
                }
625
                $this->ImageWrite($maskImg, $fileMask);
626
                imagedestroy($maskImg);
627
                // Downscales the mask