Code Duplication    Length = 10-10 lines in 2 locations

thumbs/phpthumb.class.php 2 locations

@@ 537-546 (lines=10) @@
534
        $this->DebugMessage('RenderOutput() attempting Image' . strtoupper(@$this->thumbnailFormat) . '($this->gdimg_output)', __FILE__, __LINE__);
535
        ob_start();
536
        switch ($this->thumbnailFormat) {
537
            case 'wbmp':
538
                if (empty($builtin_formats['wbmp'])) {
539
                    $this->DebugMessage('GD does not have required built-in support for WBMP output', __FILE__, __LINE__);
540
                    ob_end_clean();
541
542
                    return false;
543
                }
544
                imagejpeg($this->gdimg_output, null, $this->thumbnailQuality);
545
                $this->outputImageData = ob_get_contents();
546
                break;
547
548
            case 'jpeg':
549
            case 'jpg':  // should be "jpeg" not "jpg" but just in case...
@@ 549-558 (lines=10) @@
546
                break;
547
548
            case 'jpeg':
549
            case 'jpg':  // should be "jpeg" not "jpg" but just in case...
550
                if (empty($builtin_formats['jpg'])) {
551
                    $this->DebugMessage('GD does not have required built-in support for JPEG output', __FILE__, __LINE__);
552
                    ob_end_clean();
553
554
                    return false;
555
                }
556
                imagejpeg($this->gdimg_output, null, $this->thumbnailQuality);
557
                $this->outputImageData = ob_get_contents();
558
                break;
559
560
            case 'png':
561
                if (empty($builtin_formats['png'])) {