Code Duplication    Length = 3-3 lines in 2 locations

classes/class-importer.php 2 locations

@@ 259-261 (lines=3) @@
256
                    $height = $this->options['height'];
257
                }
258
                $cropping = 'w';
259
                if (isset($this->options['cropping']) && '' !== $this->options['cropping']) {
260
                    $cropping = $this->options['cropping'];
261
                }
262
                $this->image_scaling_url = 'https://wetu.com/ImageHandler/' . $cropping . $width . 'x' . $height . '/';
263
            }
264
@@ 913-915 (lines=3) @@
910
				$defaults['height'] = $this->options['height'];
911
			}
912
913
			if(isset($this->options['cropping']) && '' !== $this->options['cropping']){
914
				$defaults['cropping'] = $this->options['cropping'];
915
			}
916
		}
917
		$args = wp_parse_args($args,$defaults);
918