Code Duplication    Length = 9-12 lines in 2 locations

includes/user/User.php 2 locations

@@ 2046-2054 (lines=9) @@
2043
	 *
2044
	 * @return bool True if locked, false otherwise
2045
	 */
2046
	public function isLocked() {
2047
		if ( $this->mLocked !== null ) {
2048
			return $this->mLocked;
2049
		}
2050
		$authUser = AuthManager::callLegacyAuthPlugin( 'getUserInstance', [ &$this ], null );
2051
		$this->mLocked = $authUser && $authUser->isLocked();
2052
		Hooks::run( 'UserIsLocked', [ $this, &$this->mLocked ] );
2053
		return $this->mLocked;
2054
	}
2055
2056
	/**
2057
	 * Check if user account is hidden
@@ 2061-2072 (lines=12) @@
2058
	 *
2059
	 * @return bool True if hidden, false otherwise
2060
	 */
2061
	public function isHidden() {
2062
		if ( $this->mHideName !== null ) {
2063
			return $this->mHideName;
2064
		}
2065
		$this->getBlockedStatus();
2066
		if ( !$this->mHideName ) {
2067
			$authUser = AuthManager::callLegacyAuthPlugin( 'getUserInstance', [ &$this ], null );
2068
			$this->mHideName = $authUser && $authUser->isHidden();
2069
			Hooks::run( 'UserIsHidden', [ $this, &$this->mHideName ] );
2070
		}
2071
		return $this->mHideName;
2072
	}
2073
2074
	/**
2075
	 * Get the user's ID.