Code Duplication    Length = 8-8 lines in 2 locations

htdocs/class/libraries/vendor/smottt/wideimage/lib/WideImage/PaletteImage.php 1 location

@@ 41-48 (lines=8) @@
38
	 * @param int $height
39
	 * @return \WideImage\PaletteImage
40
	 */
41
	public static function create($width, $height)
42
	{
43
		if ($width * $height <= 0 || $width < 0) {
44
			throw new InvalidImageDimensionException("Can't create an image with dimensions [$width, $height].");
45
		}
46
		
47
		return new PaletteImage(imagecreate($width, $height));
48
	}
49
	
50
	public function doCreate($width, $height)
51
	{

htdocs/class/libraries/vendor/smottt/wideimage/lib/WideImage/TrueColorImage.php 1 location

@@ 53-60 (lines=8) @@
50
	 * @param int $height
51
	 * @return \WideImage\TrueColorImage
52
	 */
53
	public static function create($width, $height)
54
	{
55
		if ($width * $height <= 0 || $width < 0) {
56
			throw new InvalidImageDimensionException("Can't create an image with dimensions [$width, $height].");
57
		}
58
		
59
		return new TrueColorImage(imagecreatetruecolor($width, $height));
60
	}
61
	
62
	public function doCreate($width, $height)
63
	{