Code Duplication    Length = 3-3 lines in 2 locations

classes/class-importer.php 2 locations

@@ 248-250 (lines=3) @@
245
                    $height = $this->options['height'];
246
                }
247
                $cropping = 'raw';
248
                if (isset($this->options['cropping']) && '' !== $this->options['cropping']) {
249
                    $cropping = $this->options['cropping'];
250
                }
251
                $this->image_scaling_url = 'https://wetu.com/ImageHandler/' . $cropping . $width . 'x' . $height . '/';
252
            }
253
@@ 897-899 (lines=3) @@
894
				$defaults['height'] = $this->options['height'];
895
			}
896
897
			if(isset($this->options['cropping']) && '' !== $this->options['cropping']){
898
				$defaults['cropping'] = $this->options['cropping'];
899
			}
900
		}
901
		$args = wp_parse_args($args,$defaults);
902