Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 476-484 (lines=9) @@
473
		$this->DebugMessage('RenderOutput() attempting image'.strtolower(@$this->thumbnailFormat).'($this->gdimg_output)', __FILE__, __LINE__);
474
		ob_start();
475
		switch ($this->thumbnailFormat) {
476
			case 'wbmp':
477
				if (empty($builtin_formats['wbmp'])) {
478
					$this->DebugMessage('GD does not have required built-in support for WBMP output', __FILE__, __LINE__);
479
					ob_end_clean();
480
					return false;
481
				}
482
				imagejpeg($this->gdimg_output, null, $this->thumbnailQuality);
483
				$this->outputImageData = ob_get_contents();
484
				break;
485
486
			case 'jpeg':
487
			case 'jpg':  // should be "jpeg" not "jpg" but just in case...
@@ 487-495 (lines=9) @@
484
				break;
485
486
			case 'jpeg':
487
			case 'jpg':  // should be "jpeg" not "jpg" but just in case...
488
				if (empty($builtin_formats['jpg'])) {
489
					$this->DebugMessage('GD does not have required built-in support for JPEG output', __FILE__, __LINE__);
490
					ob_end_clean();
491
					return false;
492
				}
493
				imagejpeg($this->gdimg_output, null, $this->thumbnailQuality);
494
				$this->outputImageData = ob_get_contents();
495
				break;
496
497
			case 'png':
498
				if (empty($builtin_formats['png'])) {