Code Duplication    Length = 11-11 lines in 2 locations

includes/CategoryViewer.php 2 locations

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