Code Duplication    Length = 6-7 lines in 2 locations

includes/specials/pagers/ActiveUsersPager.php 1 location

@@ 64-69 (lines=6) @@
61
		$this->requestedUser = '';
62
63
		$un = $opts->getValue( 'username' );
64
		if ( $un != '' ) {
65
			$username = Title::makeTitleSafe( NS_USER, $un );
66
			if ( !is_null( $username ) ) {
67
				$this->requestedUser = $username->getText();
68
			}
69
		}
70
71
		if ( $opts->getValue( 'hidebots' ) == 1 ) {
72
			$this->hideRights[] = 'bot';

includes/specials/pagers/UsersPager.php 1 location

@@ 81-87 (lines=7) @@
78
79
		$this->requestedUser = '';
80
81
		if ( $un != '' ) {
82
			$username = Title::makeTitleSafe( NS_USER, $un );
83
84
			if ( !is_null( $username ) ) {
85
				$this->requestedUser = $username->getText();
86
			}
87
		}
88
89
		parent::__construct();
90
	}