src/UserManager.php
protected static function validatePassword($password) {
		if (empty($password)) {
			throw new InvalidPasswordException();
		}

		$password = \trim($password);

		if (\strlen($password) < 1) {
			throw new InvalidPasswordException();
		}

		return $password;
	}
protected static function validatePassword($password) {
		if (empty($password)) {
			throw new InvalidPasswordException();
		}

		$password = \trim($password);

		if (\strlen($password) < 1) {
			throw new InvalidPasswordException();
		}

		return $password;
	}
protected static function validatePassword ( $ password ) { if ( empty ( $ password ) ) { throw new InvalidPasswordException ( ) ; } $ password = \ trim ( $ password ) ; if ( \ strlen ( $ password ) < 1 ) { throw new InvalidPasswordException ( ) ; } return $ password ; }
Validates a password

@param string $password the password to validate
@return string the sanitized password
@throws InvalidPasswordException if the password has been invalid
Validates a password