Code Duplication    Length = 3-3 lines in 2 locations

classes/class-importer.php 2 locations

@@ 244-246 (lines=3) @@
241
                    $width = $this->options['width'];
242
                }
243
                $height = '600';
244
                if (isset($this->options['height']) && '' !== $this->options['height']) {
245
                    $height = $this->options['height'];
246
                }
247
                $cropping = 'raw';
248
                if (isset($this->options['cropping']) && '' !== $this->options['cropping']) {
249
                    $cropping = $this->options['cropping'];
@@ 899-901 (lines=3) @@
896
				$defaults['width'] = $this->options['width'];
897
			}
898
899
			if(isset($this->options['height']) && '' !== $this->options['height']){
900
				$defaults['height'] = $this->options['height'];
901
			}
902
903
			if(isset($this->options['cropping']) && '' !== $this->options['cropping']){
904
				$defaults['cropping'] = $this->options['cropping'];