Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 1883-1892 (lines=10) @@
1880
     * @return string The sharpening command, eg. " -sharpen 3x4
1881
     * @see makeText(), IMparams(), v5_blur()
1882
     */
1883
    public function v5_sharpen($factor)
1884
    {
1885
        $factor = MathUtility::forceIntegerInRange(ceil($factor / 10), 0, 10);
1886
        $sharpenArr = explode(',', ',' . $this->im5fx_sharpenSteps);
1887
        $sharpenF = trim($sharpenArr[$factor]);
1888
        if ($sharpenF) {
1889
            return ' -sharpen ' . $sharpenF;
1890
        }
1891
        return '';
1892
    }
1893
1894
    /**
1895
     * Returns the IM command for blurring with ImageMagick 5.
@@ 1902-1911 (lines=10) @@
1899
     * @return string The blurring command, eg. " -blur 3x4
1900
     * @see makeText(), IMparams(), v5_sharpen()
1901
     */
1902
    public function v5_blur($factor)
1903
    {
1904
        $factor = MathUtility::forceIntegerInRange(ceil($factor / 10), 0, 10);
1905
        $blurArr = explode(',', ',' . $this->im5fx_blurSteps);
1906
        $blurF = trim($blurArr[$factor]);
1907
        if ($blurF) {
1908
            return ' -blur ' . $blurF;
1909
        }
1910
        return '';
1911
    }
1912
1913
    /**
1914
     * Returns a random filename prefixed with "temp_" and then 32 char md5 hash (without extension).