Code Duplication    Length = 5-5 lines in 2 locations

class/UploadHandler.php 2 locations

@@ 491-495 (lines=5) @@
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
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
@@ 501-505 (lines=5) @@
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
504
                return false;
505
            }
506
        }
507
508
        return true;