Code Duplication    Length = 4-4 lines in 3 locations

thumbs/phpthumb.class.php 3 locations

@@ 2579-2582 (lines=4) @@
2576
                        $this->useRawIMoutput = true;
2577
                        $this->DebugMessage('$this->useRawIMoutput set to TRUE because ' . @$ImageCreateFunction . '(' . $IMtempfilename . ') failed', __FILE__, __LINE__);
2578
                    }
2579
                    if (file_exists($IMtempfilename)) {
2580
                        $this->DebugMessage('deleting "' . $IMtempfilename . '"', __FILE__, __LINE__);
2581
                        @unlink($IMtempfilename);
2582
                    }
2583
2584
                    return true;
2585
                }
@@ 2586-2589 (lines=4) @@
2583
2584
                    return true;
2585
                }
2586
                if (file_exists($IMtempfilename)) {
2587
                    $this->DebugMessage('deleting "' . $IMtempfilename . '"', __FILE__, __LINE__);
2588
                    @unlink($IMtempfilename);
2589
                }
2590
            } elseif ($this->issafemode) {
2591
                $this->DebugMessage('ImageMagickThumbnailToGD() aborting because PHP safe_mode is enabled and phpThumb_tempnam() failed', __FILE__, __LINE__);
2592
                $this->useRawIMoutput = false;
@@ 2594-2597 (lines=4) @@
2591
                $this->DebugMessage('ImageMagickThumbnailToGD() aborting because PHP safe_mode is enabled and phpThumb_tempnam() failed', __FILE__, __LINE__);
2592
                $this->useRawIMoutput = false;
2593
            } else {
2594
                if (file_exists($IMtempfilename)) {
2595
                    $this->DebugMessage('deleting "' . $IMtempfilename . '"', __FILE__, __LINE__);
2596
                    @unlink($IMtempfilename);
2597
                }
2598
                $this->DebugMessage('ImageMagickThumbnailToGD() aborting, phpThumb_tempnam() failed', __FILE__, __LINE__);
2599
            }
2600
        } else {