Code Duplication    Length = 5-5 lines in 2 locations

class/UploadHandler.php 2 locations

@@ 486-490 (lines=5) @@
483
        }
484
        list($img_width, $img_height) = @getimagesize($uploaded_file);
485
        if (is_int($img_width)) {
486
            if ($this->options['max_width'] && $img_width > $this->options['max_width']) {
487
                $file->error = $this->get_error_message('max_width');
488
489
                return false;
490
            }
491
            if ($this->options['max_height'] && $img_height > $this->options['max_height']) {
492
                $file->error = $this->get_error_message('max_height');
493
@@ 496-500 (lines=5) @@
493
494
                return false;
495
            }
496
            if ($this->options['min_width'] && $img_width < $this->options['min_width']) {
497
                $file->error = $this->get_error_message('min_width');
498
499
                return false;
500
            }
501
            if ($this->options['min_height'] && $img_height < $this->options['min_height']) {
502
                $file->error = $this->get_error_message('min_height');
503