Code Duplication    Length = 5-5 lines in 2 locations

includes/specials/SpecialUndelete.php 1 location

@@ 783-787 (lines=5) @@
780
		$user = $this->getUser();
781
782
		$this->mAction = $request->getVal( 'action' );
783
		if ( $par !== null && $par !== '' ) {
784
			$this->mTarget = $par;
785
		} else {
786
			$this->mTarget = $request->getVal( 'target' );
787
		}
788
789
		$this->mTargetObj = null;
790

includes/specials/SpecialUserrights.php 1 location

@@ 101-105 (lines=5) @@
98
			throw new UserBlockedError( $user->getBlock() );
99
		}
100
101
		if ( $par !== null ) {
102
			$this->mTarget = $par;
103
		} else {
104
			$this->mTarget = $request->getVal( 'user' );
105
		}
106
107
		if ( is_string( $this->mTarget ) ) {
108
			$this->mTarget = trim( $this->mTarget );