Code Duplication    Length = 7-9 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 3630-3636 (lines=7) @@
3627
		
3628
			/* Resizing by biggest side */
3629
			if ($resizeByBiggerSide) {
3630
				if ($orig_w > $orig_h) {
3631
					$size_h = round($orig_h * $width / $orig_w);
3632
					$size_w = $width;
3633
				} else {
3634
					$size_w = round($orig_w * $height / $orig_h);
3635
					$size_h = $height;
3636
				}
3637
			} else {
3638
				if ($orig_w > $orig_h) {
3639
					$size_w = round($orig_w * $height / $orig_h);
@@ 3637-3645 (lines=9) @@
3634
					$size_w = round($orig_w * $height / $orig_h);
3635
					$size_h = $height;
3636
				}
3637
			} else {
3638
				if ($orig_w > $orig_h) {
3639
					$size_w = round($orig_w * $height / $orig_h);
3640
					$size_h = $height;
3641
				} else {
3642
					$size_h = round($orig_h * $width / $orig_w);
3643
					$size_w = $width;
3644
				}
3645
			}
3646
		}
3647
3648
		switch ($this->imgLib) {