Code Duplication    Length = 3-3 lines in 2 locations

includes/media/GIF.php 1 location

@@ 180-182 (lines=3) @@
177
			$info[] = wfMessage( 'file-info-gif-looped' )->parse();
178
		}
179
180
		if ( $metadata['frameCount'] > 1 ) {
181
			$info[] = wfMessage( 'file-info-gif-frames' )->numParams( $metadata['frameCount'] )->parse();
182
		}
183
184
		if ( $metadata['duration'] ) {
185
			$info[] = $wgLang->formatTimePeriod( $metadata['duration'] );

includes/media/PNG.php 1 location

@@ 167-169 (lines=3) @@
164
			$info[] = wfMessage( 'file-info-png-repeat' )->numParams( $metadata['loopCount'] )->parse();
165
		}
166
167
		if ( $metadata['frameCount'] > 0 ) {
168
			$info[] = wfMessage( 'file-info-png-frames' )->numParams( $metadata['frameCount'] )->parse();
169
		}
170
171
		if ( $metadata['duration'] ) {
172
			$info[] = $wgLang->formatTimePeriod( $metadata['duration'] );