Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 1993-1995 (lines=3) @@
1990
1991
		switch($mode) {
1992
			
1993
			case 'propresize':
1994
				$result = $this->imgResize($work_path, $width, $height, true, true, null, $jpgQuality);
1995
				break;
1996
1997
			case 'crop':
1998
				$result = $this->imgCrop($work_path, $width, $height, $x, $y, null, $jpgQuality);
@@ 2009-2011 (lines=3) @@
2006
				$result = $this->imgRotate($work_path, $degree, ($bg ? $bg : $this->options['tmbBgColor']), null, $jpgQuality);
2007
				break;
2008
2009
			default:
2010
				$result = $this->imgResize($work_path, $width, $height, false, true, null, $jpgQuality);
2011
				break;
2012
		}
2013
		
2014
		$ret = false;