original_string: public function createAndLoginFrontEndUser($frontEndUserGroups = '', array $recordData = [])
      {
          $frontEndUserUid = $this->createFrontEndUser($frontEndUserGroups, $recordData);
  
          $this->loginFrontEndUser($frontEndUserUid);
  
          return $frontEndUserUid;
      }
code: public function createAndLoginFrontEndUser($frontEndUserGroups = '', array $recordData = [])
      {
          $frontEndUserUid = $this->createFrontEndUser($frontEndUserGroups, $recordData);
  
          $this->loginFrontEndUser($frontEndUserUid);
  
          return $frontEndUserUid;
      }
code_tokens: public function createAndLoginFrontEndUser ( $ frontEndUserGroups = '' , array $ recordData = [ ] ) { $ frontEndUserUid = $ this -> createFrontEndUser ( $ frontEndUserGroups , $ recordData ) ; $ this -> loginFrontEndUser ( $ frontEndUserUid ) ; return $ frontEndUserUid ; }
docstring: Creates and logs in an FE user.
  
  @param string $frontEndUserGroups
  comma-separated list of UIDs of the user groups to which the new
  user belongs, each must be > 0, may contain spaces; if empty a new
  front-end user group is created
  @param array $recordData
  associative array that contains the data to save in the new user
  record, may be empty, but must not contain the keys "uid" or
  "usergroup"
  
  @return int the UID of the new FE user, will be > 0
docstring_tokens: Creates and logs in an FE user .