Code Duplication    Length = 4-5 lines in 2 locations

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

@@ 1653-1657 (lines=5) @@
1650
            $value = trim($pairs[1]);
1651
            $effect = strtolower(trim($pairs[0]));
1652
            switch ($effect) {
1653
                case 'inputlevels':
1654
                    // low,high
1655
                    $params = GeneralUtility::intExplode(',', $value);
1656
                    $this->inputLevels($im, $params[0], $params[1]);
1657
                    break;
1658
                case 'outputlevels':
1659
                    $params = GeneralUtility::intExplode(',', $value);
1660
                    $this->outputLevels($im, $params[0], $params[1]);
@@ 1658-1661 (lines=4) @@
1655
                    $params = GeneralUtility::intExplode(',', $value);
1656
                    $this->inputLevels($im, $params[0], $params[1]);
1657
                    break;
1658
                case 'outputlevels':
1659
                    $params = GeneralUtility::intExplode(',', $value);
1660
                    $this->outputLevels($im, $params[0], $params[1]);
1661
                    break;
1662
                case 'autolevels':
1663
                    $this->autolevels($im);
1664
                    break;