Code Duplication    Length = 7-9 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 3645-3651 (lines=7) @@
3642
		
3643
			/* Resizing by biggest side */
3644
			if ($resizeByBiggerSide) {
3645
				if ($orig_w > $orig_h) {
3646
					$size_h = round($orig_h * $width / $orig_w);
3647
					$size_w = $width;
3648
				} else {
3649
					$size_w = round($orig_w * $height / $orig_h);
3650
					$size_h = $height;
3651
				}
3652
			} else {
3653
				if ($orig_w > $orig_h) {
3654
					$size_w = round($orig_w * $height / $orig_h);
@@ 3652-3660 (lines=9) @@
3649
					$size_w = round($orig_w * $height / $orig_h);
3650
					$size_h = $height;
3651
				}
3652
			} else {
3653
				if ($orig_w > $orig_h) {
3654
					$size_w = round($orig_w * $height / $orig_h);
3655
					$size_h = $height;
3656
				} else {
3657
					$size_h = round($orig_h * $width / $orig_w);
3658
					$size_w = $width;
3659
				}
3660
			}
3661
		}
3662
3663
		switch ($this->imgLib) {