Code Duplication    Length = 3-3 lines in 2 locations

includes/Linker.php 2 locations

@@ 517-519 (lines=3) @@
514
			# For "frameless" option: do not present an image bigger than the
515
			# source (for bitmap-style images). This is the same behavior as the
516
			# "thumb" option does it already.
517
			if ( $srcWidth && !$file->mustRender() && $handlerParams['width'] > $srcWidth ) {
518
				$handlerParams['width'] = $srcWidth;
519
			}
520
		}
521
522
		if ( $file && isset( $handlerParams['width'] ) ) {
@@ 674-676 (lines=3) @@
671
				# Do not present an image bigger than the source, for bitmap-style images
672
				# This is a hack to maintain compatibility with arbitrary pre-1.10 behavior
673
				$srcWidth = $file->getWidth( $page );
674
				if ( $srcWidth && !$file->mustRender() && $handlerParams['width'] > $srcWidth ) {
675
					$handlerParams['width'] = $srcWidth;
676
				}
677
				$thumb = $file->transform( $handlerParams );
678
			}
679