Code Duplication    Length = 3-3 lines in 2 locations

php/elFinderVolumeDriver.class.php 2 locations

@@ 4220-4222 (lines=3) @@
4217
			return imagejpeg($image, $filename, $jpgQuality);
4218
		}
4219
4220
		if ($destformat == 'gif' || ($destformat == null && $mime == 'image/gif')) {
4221
			return imagegif($image, $filename, 7);
4222
		}
4223
4224
		return imagepng($image, $filename, 7);
4225
	}
@@ 4277-4279 (lines=3) @@
4274
			return imagejpeg($image, $filename, $jpgQuality);
4275
		}
4276
4277
		if ($destformat == 'gif' || ($destformat == null && $mime == 'image/gif')) {
4278
			return imagegif($image, $filename, 7);
4279
		}
4280
4281
		return imagepng($image, $filename, 7);
4282
	}