Code Duplication    Length = 7-9 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 3600-3606 (lines=7) @@
3597
		
3598
			/* Resizing by biggest side */
3599
			if ($resizeByBiggerSide) {
3600
				if ($orig_w > $orig_h) {
3601
					$size_h = round($orig_h * $width / $orig_w);
3602
					$size_w = $width;
3603
				} else {
3604
					$size_w = round($orig_w * $height / $orig_h);
3605
					$size_h = $height;
3606
				}
3607
			} else {
3608
				if ($orig_w > $orig_h) {
3609
					$size_w = round($orig_w * $height / $orig_h);
@@ 3607-3615 (lines=9) @@
3604
					$size_w = round($orig_w * $height / $orig_h);
3605
					$size_h = $height;
3606
				}
3607
			} else {
3608
				if ($orig_w > $orig_h) {
3609
					$size_w = round($orig_w * $height / $orig_h);
3610
					$size_h = $height;
3611
				} else {
3612
					$size_h = round($orig_h * $width / $orig_w);
3613
					$size_w = $width;
3614
				}
3615
			}
3616
		}
3617
3618
		switch ($this->imgLib) {