Code Duplication    Length = 3-3 lines in 3 locations

application/modules/wishlist/classes/ParentWishlist.php 3 locations

@@ 588-590 (lines=3) @@
585
586
        list($width, $height) = getimagesize($_FILES['file']['tmp_name']);
587
588
        if ($this->settings['maxImageSize'] < $_FILES['file']['size']) {
589
            $this->errors[] = lang('Maximum image size is exceeded', 'wishlist') . ' (' . lang('max size', 'wishlist') . ' ' . $this->settings['maxImageSize'] . ')';
590
        }
591
        if ($this->settings['maxImageWidth'] < $width) {
592
            $this->errors[] = lang('Maximum width of the image is exceeded', 'wishlist') . ' (' . lang('max width', 'wishlist') . ' ' . $this->settings['maxImageWidth'] . 'px)';
593
        }
@@ 591-593 (lines=3) @@
588
        if ($this->settings['maxImageSize'] < $_FILES['file']['size']) {
589
            $this->errors[] = lang('Maximum image size is exceeded', 'wishlist') . ' (' . lang('max size', 'wishlist') . ' ' . $this->settings['maxImageSize'] . ')';
590
        }
591
        if ($this->settings['maxImageWidth'] < $width) {
592
            $this->errors[] = lang('Maximum width of the image is exceeded', 'wishlist') . ' (' . lang('max width', 'wishlist') . ' ' . $this->settings['maxImageWidth'] . 'px)';
593
        }
594
        if ($this->settings['maxImageHeight'] < $height) {
595
            $this->errors[] = lang('Max image height exceeded', 'wishlist') . ' (' . lang('max height', 'wishlist') . ' ' . $this->settings['maxImageHeight'] . 'px)';
596
        }
@@ 594-596 (lines=3) @@
591
        if ($this->settings['maxImageWidth'] < $width) {
592
            $this->errors[] = lang('Maximum width of the image is exceeded', 'wishlist') . ' (' . lang('max width', 'wishlist') . ' ' . $this->settings['maxImageWidth'] . 'px)';
593
        }
594
        if ($this->settings['maxImageHeight'] < $height) {
595
            $this->errors[] = lang('Max image height exceeded', 'wishlist') . ' (' . lang('max height', 'wishlist') . ' ' . $this->settings['maxImageHeight'] . 'px)';
596
        }
597
        if (!in_array($_FILES['file']['type'], $allowedFileFormats)) {
598
            $this->errors[] = lang('Invalid file format', 'wishlist');
599
        }