Code Duplication    Length = 3-3 lines in 2 locations

htdocs/class/libraries/vendor/smottt/wideimage/lib/WideImage/Operation/Crop.php 2 locations

@@ 82-84 (lines=3) @@
79
		if ($img->isTransparent() || $img instanceof PaletteImage) {
80
			$new->copyTransparencyFrom($img);
81
			
82
			if (!imagecopyresized($new->getHandle(), $img->getHandle(), 0, 0, $left, $top, $width, $height, $width, $height)) {
83
				throw new GDFunctionResultException("imagecopyresized() returned false");
84
			}
85
		} else {
86
			$new->alphaBlending(false);
87
			$new->saveAlpha(true);
@@ 89-91 (lines=3) @@
86
			$new->alphaBlending(false);
87
			$new->saveAlpha(true);
88
			
89
			if (!imagecopyresampled($new->getHandle(), $img->getHandle(), 0, 0, $left, $top, $width, $height, $width, $height)) {
90
				throw new GDFunctionResultException("imagecopyresampled() returned false");
91
			}
92
		}
93
		
94
		return $new;