Code Duplication    Length = 3-3 lines in 2 locations

classes/class-importer.php 2 locations

@@ 226-228 (lines=3) @@
223
						$height = $this->options['height'];
224
					}
225
					$cropping = 'raw';
226
					if (isset($this->options['cropping']) && '' !== $this->options['cropping']) {
227
						$cropping = $this->options['cropping'];
228
					}
229
					$this->image_scaling_url = 'https://wetu.com/ImageHandler/' . $cropping . $width . 'x' . $height . '/';
230
				}
231
			}
@@ 855-857 (lines=3) @@
852
				$defaults['height'] = $this->options['height'];
853
			}
854
855
			if(isset($this->options['cropping']) && '' !== $this->options['cropping']){
856
				$defaults['cropping'] = $this->options['cropping'];
857
			}
858
		}
859
		$args = wp_parse_args($args,$defaults);
860