Code Duplication    Length = 6-6 lines in 2 locations

htdocs/class/xoopseditor/tinymce4/external_plugins/filemanager/include/php_image_magician.php 2 locations

@@ 2478-2483 (lines=6) @@
2475
        switch($extension)
2476
        {
2477
            case '.jpg':
2478
            case '.jpeg':
2479
        $this->checkInterlaceImage($this->isInterlace);
2480
        if (imagetypes() & IMG_JPG) {
2481
          imagejpeg($this->imageResized, $savePath, $imageQuality);
2482
        } else { $error = 'jpg'; }
2483
                break;
2484
2485
            case '.gif':
2486
        $this->checkInterlaceImage($this->isInterlace);
@@ 2485-2490 (lines=6) @@
2482
        } else { $error = 'jpg'; }
2483
                break;
2484
2485
            case '.gif':
2486
        $this->checkInterlaceImage($this->isInterlace);
2487
        if (imagetypes() & IMG_GIF) {
2488
          imagegif($this->imageResized, $savePath);
2489
        } else { $error = 'gif'; }
2490
                break;
2491
2492
            case '.png':
2493
        // *** Scale quality from 0-100 to 0-9