Code Duplication    Length = 3-3 lines in 2 locations

classes/class-accommodation.php 1 location

@@ 84-86 (lines=3) @@
81
				$defaults['width'] = $this->options['width'];
82
			}
83
84
			if(isset($this->options['height']) && '' !== $this->options['height']){
85
				$defaults['height'] = $this->options['height'];
86
			}
87
88
			if(isset($this->options['cropping']) && '' !== $this->options['cropping']){
89
				$defaults['cropping'] = $this->options['cropping'];

classes/class-importer.php 1 location

@@ 170-172 (lines=3) @@
167
						$width = $this->options['width'];
168
					}
169
					$height = '600';
170
					if (isset($this->options['height']) && '' !== $this->options['height']) {
171
						$height = $this->options['height'];
172
					}
173
					$cropping = 'raw';
174
					if (isset($this->options['cropping']) && '' !== $this->options['cropping']) {
175
						$cropping = $this->options['cropping'];