Code Duplication    Length = 5-6 lines in 2 locations

thumbs/phpthumb.class.php 2 locations

@@ 629-633 (lines=5) @@
626
                unset($phpthumb_ico);
627
                break;
628
629
            default:
630
                $this->DebugMessage('RenderOutput failed because $this->thumbnailFormat "' . $this->thumbnailFormat . '" is not valid', __FILE__, __LINE__);
631
                ob_end_clean();
632
633
                return false;
634
        }
635
        ob_end_clean();
636
        if (!$this->outputImageData) {
@@ 2892-2897 (lines=6) @@
2889
        }
2890
        switch ($this->thumbnailFormat) {
2891
            case 'png':
2892
            case 'ico':
2893
                // image has alpha transparency, but output as PNG or ICO which can handle it
2894
                $this->DebugMessage('skipping AlphaChannelFlatten() because ($this->thumbnailFormat == "' . $this->thumbnailFormat . '")', __FILE__, __LINE__);
2895
2896
                return false;
2897
                break;
2898
2899
            case 'gif':
2900
                // image has alpha transparency, but output as GIF which can handle only single-color transparency