Code Duplication    Length = 4-4 lines in 2 locations

includes/media/SVGMetadataExtractor.php 2 locations

@@ 346-349 (lines=4) @@
343
				}
344
			}
345
		}
346
		if ( $this->reader->getAttribute( 'width' ) ) {
347
			$width = $this->scaleSVGUnit( $this->reader->getAttribute( 'width' ), $defaultWidth );
348
			$this->metadata['originalWidth'] = $this->reader->getAttribute( 'width' );
349
		}
350
		if ( $this->reader->getAttribute( 'height' ) ) {
351
			$height = $this->scaleSVGUnit( $this->reader->getAttribute( 'height' ), $defaultHeight );
352
			$this->metadata['originalHeight'] = $this->reader->getAttribute( 'height' );
@@ 350-353 (lines=4) @@
347
			$width = $this->scaleSVGUnit( $this->reader->getAttribute( 'width' ), $defaultWidth );
348
			$this->metadata['originalWidth'] = $this->reader->getAttribute( 'width' );
349
		}
350
		if ( $this->reader->getAttribute( 'height' ) ) {
351
			$height = $this->scaleSVGUnit( $this->reader->getAttribute( 'height' ), $defaultHeight );
352
			$this->metadata['originalHeight'] = $this->reader->getAttribute( 'height' );
353
		}
354
355
		if ( !isset( $width ) && !isset( $height ) ) {
356
			$width = $defaultWidth;