Code Duplication    Length = 4-4 lines in 2 locations

includes/specials/SpecialWhatlinkshere.php 2 locations

@@ 420-423 (lines=4) @@
417
		$changed = $this->opts->getChangedValues();
418
		unset( $changed['target'] ); // Already in the request title
419
420
		if ( 0 != $prevId ) {
421
			$overrides = [ 'from' => $this->opts->getValue( 'back' ) ];
422
			$prev = $this->makeSelfLink( $prev, array_merge( $changed, $overrides ) );
423
		}
424
		if ( 0 != $nextId ) {
425
			$overrides = [ 'from' => $nextId, 'back' => $prevId ];
426
			$next = $this->makeSelfLink( $next, array_merge( $changed, $overrides ) );
@@ 424-427 (lines=4) @@
421
			$overrides = [ 'from' => $this->opts->getValue( 'back' ) ];
422
			$prev = $this->makeSelfLink( $prev, array_merge( $changed, $overrides ) );
423
		}
424
		if ( 0 != $nextId ) {
425
			$overrides = [ 'from' => $nextId, 'back' => $prevId ];
426
			$next = $this->makeSelfLink( $next, array_merge( $changed, $overrides ) );
427
		}
428
429
		$limitLinks = [];
430
		$lang = $this->getLanguage();