Code Duplication    Length = 7-11 lines in 2 locations

includes/pager/IndexPager.php 2 locations

@@ 572-582 (lines=11) @@
569
		# Don't announce the limit everywhere if it's the default
570
		$urlLimit = $this->mLimit == $this->mDefaultLimit ? null : $this->mLimit;
571
572
		if ( $this->mIsFirst ) {
573
			$prev = false;
574
			$first = false;
575
		} else {
576
			$prev = [
577
				'dir' => 'prev',
578
				'offset' => $this->mFirstShown,
579
				'limit' => $urlLimit
580
			];
581
			$first = [ 'limit' => $urlLimit ];
582
		}
583
		if ( $this->mIsLast ) {
584
			$next = false;
585
			$last = false;
@@ 583-589 (lines=7) @@
580
			];
581
			$first = [ 'limit' => $urlLimit ];
582
		}
583
		if ( $this->mIsLast ) {
584
			$next = false;
585
			$last = false;
586
		} else {
587
			$next = [ 'offset' => $this->mLastShown, 'limit' => $urlLimit ];
588
			$last = [ 'dir' => 'prev', 'limit' => $urlLimit ];
589
		}
590
		return [
591
			'prev' => $prev,
592
			'next' => $next,