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
@@ 885-887 (lines=3) @@
882
				$defaults['height'] = $this->options['height'];
883
			}
884
885
			if(isset($this->options['cropping']) && '' !== $this->options['cropping']){
886
				$defaults['cropping'] = $this->options['cropping'];
887
			}
888
		}
889
		$args = wp_parse_args($args,$defaults);
890