Code Duplication    Length = 3-3 lines in 2 locations

includes/Linker.php 2 locations

@@ 646-648 (lines=3) @@
643
			# For "frameless" option: do not present an image bigger than the
644
			# source (for bitmap-style images). This is the same behavior as the
645
			# "thumb" option does it already.
646
			if ( $srcWidth && !$file->mustRender() && $hp['width'] > $srcWidth ) {
647
				$hp['width'] = $srcWidth;
648
			}
649
		}
650
651
		if ( $file && isset( $hp['width'] ) ) {
@@ 805-807 (lines=3) @@
802
				# Do not present an image bigger than the source, for bitmap-style images
803
				# This is a hack to maintain compatibility with arbitrary pre-1.10 behavior
804
				$srcWidth = $file->getWidth( $page );
805
				if ( $srcWidth && !$file->mustRender() && $hp['width'] > $srcWidth ) {
806
					$hp['width'] = $srcWidth;
807
				}
808
				$thumb = $file->transform( $hp );
809
			}
810