Code Duplication    Length = 3-3 lines in 2 locations

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'];

classes/class-accommodation.php 1 location

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