Code Duplication    Length = 3-3 lines in 2 locations

lib/elFinderVolumeDriver.class.php 2 locations

@@ 2692-2694 (lines=3) @@
2689
2690
        switch ($mode) {
2691
2692
            case 'propresize':
2693
                $result = $this->imgResize($work_path, $width, $height, true, true, null, $jpgQuality);
2694
                break;
2695
2696
            case 'crop':
2697
                $result = $this->imgCrop($work_path, $width, $height, $x, $y, null, $jpgQuality);
@@ 2708-2710 (lines=3) @@
2705
                $result = $this->imgRotate($work_path, $degree, ($bg ? $bg : $this->options['bgColorFb']), null, $jpgQuality);
2706
                break;
2707
2708
            default:
2709
                $result = $this->imgResize($work_path, $width, $height, false, true, null, $jpgQuality);
2710
                break;
2711
        }
2712
2713
        $ret = false;