Code Duplication    Length = 3-3 lines in 2 locations

classes/class-accommodation.php 1 location

@@ 107-109 (lines=3) @@
104
				$defaults['height'] = $this->options['height'];
105
			}
106
107
			if(isset($this->options['cropping']) && '' !== $this->options['cropping']){
108
				$defaults['cropping'] = $this->options['cropping'];
109
			}	
110
		}	
111
		$args = wp_parse_args($args,$defaults);
112

classes/class-importer.php 1 location

@@ 192-194 (lines=3) @@
189
						$height = $this->options['height'];
190
					}
191
					$cropping = 'raw';
192
					if (isset($this->options['cropping']) && '' !== $this->options['cropping']) {
193
						$cropping = $this->options['cropping'];
194
					}
195
					$this->image_scaling_url = 'https://wetu.com/ImageHandler/' . $cropping . $width . 'x' . $height . '/';
196
				}
197
			}