Code Duplication    Length = 3-3 lines in 2 locations

classes/class-importer.php 1 location

@@ 174-176 (lines=3) @@
171
						$height = $this->options['height'];
172
					}
173
					$cropping = 'raw';
174
					if (isset($this->options['cropping']) && '' !== $this->options['cropping']) {
175
						$cropping = $this->options['cropping'];
176
					}
177
					$this->image_scaling_url = 'https://wetu.com/ImageHandler/' . $cropping . $width . 'x' . $height . '/';
178
				}
179
			}

classes/class-accommodation.php 1 location

@@ 93-95 (lines=3) @@
90
				$defaults['height'] = $this->options['height'];
91
			}
92
93
			if(isset($this->options['cropping']) && '' !== $this->options['cropping']){
94
				$defaults['cropping'] = $this->options['cropping'];
95
			}	
96
		}	
97
		$args = wp_parse_args($args,$defaults);
98