Code Duplication    Length = 4-4 lines in 2 locations

thumbs/phpthumb.class.php 2 locations

@@ 3856-3859 (lines=4) @@
3853
                if (!$this->xto) {
3854
                    $source_ar = $this->source_width / $this->source_height;
3855
                    $exif_ar   = $this->exif_thumbnail_width / $this->exif_thumbnail_height;
3856
                    if (number_format($source_ar, 2) != number_format($exif_ar, 2)) {
3857
                        $this->DebugMessage('not using EXIF thumbnail because $source_ar != $exif_ar (' . $source_ar . ' != ' . $exif_ar . ')', __FILE__, __LINE__);
3858
                        break;
3859
                    }
3860
                    if ($this->w && ($this->w != $this->exif_thumbnail_width)) {
3861
                        $this->DebugMessage('not using EXIF thumbnail because $this->w != $this->exif_thumbnail_width (' . $this->w . ' != ' . $this->exif_thumbnail_width . ')', __FILE__, __LINE__);
3862
                        break;
@@ 4287-4290 (lines=4) @@
4284
                }
4285
                $source_ar = $this->source_width / $this->source_height;
4286
                $exif_ar   = $this->exif_thumbnail_width / $this->exif_thumbnail_height;
4287
                if (number_format($source_ar, 2) != number_format($exif_ar, 2)) {
4288
                    $this->DebugMessage('not using EXIF thumbnail because $source_ar != $exif_ar (' . $source_ar . ' != ' . $exif_ar . ')', __FILE__, __LINE__);
4289
                    break;
4290
                }
4291
            }
4292
4293
            // EXIF thumbnail exists, and is equal to or larger than destination thumbnail, and will be use as source image