Code Duplication    Length = 11-11 lines in 2 locations

includes/CategoryViewer.php 2 locations

@@ 631-641 (lines=11) @@
628
	private function pagingLinks( $first, $last, $type = '' ) {
629
		$prevLink = $this->msg( 'prev-page' )->text();
630
631
		if ( $first != '' ) {
632
			$prevQuery = $this->query;
633
			$prevQuery["{$type}until"] = $first;
634
			unset( $prevQuery["{$type}from"] );
635
			$prevLink = Linker::linkKnown(
636
				$this->addFragmentToTitle( $this->title, $type ),
637
				$prevLink,
638
				[],
639
				$prevQuery
640
			);
641
		}
642
643
		$nextLink = $this->msg( 'next-page' )->text();
644
@@ 645-655 (lines=11) @@
642
643
		$nextLink = $this->msg( 'next-page' )->text();
644
645
		if ( $last != '' ) {
646
			$lastQuery = $this->query;
647
			$lastQuery["{$type}from"] = $last;
648
			unset( $lastQuery["{$type}until"] );
649
			$nextLink = Linker::linkKnown(
650
				$this->addFragmentToTitle( $this->title, $type ),
651
				$nextLink,
652
				[],
653
				$lastQuery
654
			);
655
		}
656
657
		return $this->msg( 'categoryviewer-pagedlinks' )->rawParams( $prevLink, $nextLink )->escaped();
658
	}