Code Duplication    Length = 5-5 lines in 2 locations

class/UploadHandler.php 2 locations

@@ 458-462 (lines=5) @@
455
        }
456
        list($img_width, $img_height) = @getimagesize($uploaded_file);
457
        if (is_int($img_width)) {
458
            if ($this->options['max_width'] && $img_width > $this->options['max_width']) {
459
                $file->error = $this->get_error_message('max_width');
460
                return false;
461
            }
462
            if ($this->options['max_height'] && $img_height > $this->options['max_height']) {
463
                $file->error = $this->get_error_message('max_height');
464
                return false;
465
            }
@@ 466-470 (lines=5) @@
463
                $file->error = $this->get_error_message('max_height');
464
                return false;
465
            }
466
            if ($this->options['min_width'] && $img_width < $this->options['min_width']) {
467
                $file->error = $this->get_error_message('min_width');
468
                return false;
469
            }
470
            if ($this->options['min_height'] && $img_height < $this->options['min_height']) {
471
                $file->error = $this->get_error_message('min_height');
472
                return false;
473
            }