Code Duplication    Length = 10-11 lines in 2 locations

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

@@ 537-546 (lines=10) @@
534
				$this->outputImageData = ob_get_contents();
535
				break;
536
537
			case 'bmp':
538
				if (!@include_once(dirname(__FILE__).'/phpthumb.bmp.php')) {
539
					$this->DebugMessage('Error including "'.dirname(__FILE__).'/phpthumb.bmp.php" which is required for BMP format output', __FILE__, __LINE__);
540
					ob_end_clean();
541
					return false;
542
				}
543
				$phpthumb_bmp = new phpthumb_bmp();
544
				$this->outputImageData = $phpthumb_bmp->GD2BMPstring($this->gdimg_output);
545
				unset($phpthumb_bmp);
546
				break;
547
548
			case 'ico':
549
				if (!@include_once(dirname(__FILE__).'/phpthumb.ico.php')) {
@@ 548-558 (lines=11) @@
545
				unset($phpthumb_bmp);
546
				break;
547
548
			case 'ico':
549
				if (!@include_once(dirname(__FILE__).'/phpthumb.ico.php')) {
550
					$this->DebugMessage('Error including "'.dirname(__FILE__).'/phpthumb.ico.php" which is required for ICO format output', __FILE__, __LINE__);
551
					ob_end_clean();
552
					return false;
553
				}
554
				$phpthumb_ico = new phpthumb_ico();
555
				$arrayOfOutputImages = array($this->gdimg_output);
556
				$this->outputImageData = $phpthumb_ico->GD2ICOstring($arrayOfOutputImages);
557
				unset($phpthumb_ico);
558
				break;
559
560
			default:
561
				$this->DebugMessage('RenderOutput failed because $this->thumbnailFormat "'.$this->thumbnailFormat.'" is not valid', __FILE__, __LINE__);