Code Duplication    Length = 5-5 lines in 2 locations

class/UploadHandler.php 2 locations

@@ 462-466 (lines=5) @@
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
            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-474 (lines=5) @@
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
            }
474
        }
475
        return true;
476
    }
477