Code Duplication    Length = 3-3 lines in 2 locations

htdocs/modules/system/class/thumbs/phpthumb.class.php 2 locations

@@ 3708-3710 (lines=3) @@
3705
				$memory_get_usage = (function_exists('memory_get_usage') ? memory_get_usage() : 0);
3706
				return $this->ErrorImage('Source image is too large ('.$this->source_width.'x'.$this->source_height.' = '.number_format($this->source_width * $this->source_height / 1000000, 1).'Mpx, max='.number_format($this->config_max_source_pixels / 1000000, 1).'Mpx) for GD creation (either install ImageMagick or increase PHP memory_limit to at least '.ceil(($memory_get_usage + (5 * $this->source_width * $this->source_height)) / 1048576).'M).');
3707
			}
3708
			if ($this->md5s && ($this->md5s != md5($this->rawImageData))) {
3709
				return $this->ErrorImage('$this->md5s != md5($this->rawImageData)'."\n".'"'.$this->md5s.'" != '."\n".'"'.md5($this->rawImageData).'"');
3710
			}
3711
			//if ($this->issafemode) {
3712
			//	return $this->ErrorImage('Cannot generate thumbnails from raw image data when PHP SAFE_MODE enabled');
3713
			//}
@@ 3729-3731 (lines=3) @@
3726
3727
		} elseif (!$this->gdimg_source && $this->sourceFilename) {
3728
3729
			if ($this->md5s && ($this->md5s != phpthumb_functions::md5_file_safe($this->sourceFilename))) {
3730
				return $this->ErrorImage('$this->md5s != md5(sourceFilename)'."\n".'"'.$this->md5s.'" != '."\n".'"'.phpthumb_functions::md5_file_safe($this->sourceFilename).'"');
3731
			}
3732
			switch (@$this->getimagesizeinfo[2]) {
3733
				case 1:
3734
				case 3: