Code Duplication    Length = 3-3 lines in 2 locations

classes/class-accommodation.php 1 location

@@ 88-90 (lines=3) @@
85
				$defaults['height'] = $this->options['height'];
86
			}
87
88
			if(isset($this->options['cropping']) && '' !== $this->options['cropping']){
89
				$defaults['cropping'] = $this->options['cropping'];
90
			}	
91
		}	
92
		$args = wp_parse_args($args,$defaults);
93

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
			}