Code Duplication    Length = 3-3 lines in 2 locations

classes/class-importer.php 1 location

@@ 188-190 (lines=3) @@
185
						$width = $this->options['width'];
186
					}
187
					$height = '600';
188
					if (isset($this->options['height']) && '' !== $this->options['height']) {
189
						$height = $this->options['height'];
190
					}
191
					$cropping = 'raw';
192
					if (isset($this->options['cropping']) && '' !== $this->options['cropping']) {
193
						$cropping = $this->options['cropping'];

classes/class-accommodation.php 1 location

@@ 117-119 (lines=3) @@
114
				$defaults['width'] = $this->options['width'];
115
			}
116
117
			if(isset($this->options['height']) && '' !== $this->options['height']){
118
				$defaults['height'] = $this->options['height'];
119
			}
120
121
			if(isset($this->options['cropping']) && '' !== $this->options['cropping']){
122
				$defaults['cropping'] = $this->options['cropping'];