Code Duplication    Length = 7-9 lines in 2 locations

lib/elFinderVolumeDriver.class.php 2 locations

@@ 5121-5127 (lines=7) @@
5118
	        if ($keepProportions == true) {
5119
	            /* Resizing by biggest side */
5120
				if ($resizeByBiggerSide) {
5121
				    if ($orig_w > $orig_h) {
5122
				        $size_h = round($orig_h * $width / $orig_w);
5123
				        $size_w = $width;
5124
				    } else {
5125
				        $size_w = round($orig_w * $height / $orig_h);
5126
				        $size_h = $height;
5127
				    }
5128
				} else {
5129
				    if ($orig_w > $orig_h) {
5130
				        $size_w = round($orig_w * $height / $orig_h);
@@ 5128-5136 (lines=9) @@
5125
				        $size_w = round($orig_w * $height / $orig_h);
5126
				        $size_h = $height;
5127
				    }
5128
				} else {
5129
				    if ($orig_w > $orig_h) {
5130
				        $size_w = round($orig_w * $height / $orig_h);
5131
				        $size_h = $height;
5132
				    } else {
5133
				        $size_h = round($orig_h * $width / $orig_w);
5134
				        $size_w = $width;
5135
				    }
5136
				}
5137
	        }
5138
	    } else {
5139
	        $size_w = $orig_w;