Code Duplication    Length = 3-3 lines in 2 locations

includes/Linker.php 2 locations

@@ 656-658 (lines=3) @@
653
			# For "frameless" option: do not present an image bigger than the
654
			# source (for bitmap-style images). This is the same behavior as the
655
			# "thumb" option does it already.
656
			if ( $srcWidth && !$file->mustRender() && $hp['width'] > $srcWidth ) {
657
				$hp['width'] = $srcWidth;
658
			}
659
		}
660
661
		if ( $file && isset( $hp['width'] ) ) {
@@ 815-817 (lines=3) @@
812
				# Do not present an image bigger than the source, for bitmap-style images
813
				# This is a hack to maintain compatibility with arbitrary pre-1.10 behavior
814
				$srcWidth = $file->getWidth( $page );
815
				if ( $srcWidth && !$file->mustRender() && $hp['width'] > $srcWidth ) {
816
					$hp['width'] = $srcWidth;
817
				}
818
				$thumb = $file->transform( $hp );
819
			}
820