Code Duplication    Length = 6-6 lines in 2 locations

languages/Language.php 2 locations

@@ 4713-4718 (lines=6) @@
4710
4711
		# Make 'previous' link
4712
		$prev = wfMessage( 'prevn' )->inLanguage( $this )->title( $title )->numParams( $limit )->text();
4713
		if ( $offset > 0 ) {
4714
			$plink = $this->numLink( $title, max( $offset - $limit, 0 ), $limit,
4715
				$query, $prev, 'prevn-title', 'mw-prevlink' );
4716
		} else {
4717
			$plink = htmlspecialchars( $prev );
4718
		}
4719
4720
		# Make 'next' link
4721
		$next = wfMessage( 'nextn' )->inLanguage( $this )->title( $title )->numParams( $limit )->text();
@@ 4722-4727 (lines=6) @@
4719
4720
		# Make 'next' link
4721
		$next = wfMessage( 'nextn' )->inLanguage( $this )->title( $title )->numParams( $limit )->text();
4722
		if ( $atend ) {
4723
			$nlink = htmlspecialchars( $next );
4724
		} else {
4725
			$nlink = $this->numLink( $title, $offset + $limit, $limit,
4726
				$query, $next, 'nextn-title', 'mw-nextlink' );
4727
		}
4728
4729
		# Make links to set number of items per page
4730
		$numLinks = [];