Code Duplication    Length = 4-4 lines in 2 locations

includes/specials/SpecialWhatlinkshere.php 2 locations

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