Code Duplication    Length = 3-3 lines in 2 locations

classes/class-wetu-importer.php 2 locations

@@ 297-299 (lines=3) @@
294
295
				$cropping = 'w';
296
297
				if ( isset( $this->options['cropping'] ) && '' !== $this->options['cropping'] ) {
298
					$cropping = $this->options['cropping'];
299
				}
300
301
				$this->image_scaling_url = 'https://wetu.com/ImageHandler/' . $cropping . $width . 'x' . $height . '/';
302
			}
@@ 1012-1014 (lines=3) @@
1009
				$defaults['height'] = $this->options['height'];
1010
			}
1011
1012
			if ( isset( $this->options['cropping'] ) && '' !== $this->options['cropping'] ) {
1013
				$defaults['cropping'] = $this->options['cropping'];
1014
			}
1015
		}
1016
1017
		$args = wp_parse_args( $args, $defaults );