original_string: protected function _authInitialResponse($method, $ir, $username = null)
      {
          $cmd = $this->_command('AUTHENTICATE')->add($method);
  
          if ($this->_capability('SASL-IR')) {
              // IMAP Extension for SASL Initial Client Response (RFC 4959)
              $cmd->add($ir);
              if ($username) {
                  $cmd->debug = array(
                      sprintf('AUTHENTICATE %s [INITIAL CLIENT RESPONSE (username: %s)]', $method, $username)
                  );
              }
          } else {
              $cmd->add(
                  new Horde_Imap_Client_Interaction_Command_Continuation(function($ob) use ($ir) {
                      return new Horde_Imap_Client_Data_Format_List($ir);
                  })
              );
              if ($username) {
                  $cmd->debug = array(
                      null,
                      sprintf('[INITIAL CLIENT RESPONSE (username: %s)]', $username)
                  );
              }
          }
  
          return $cmd;
      }
code: protected function _authInitialResponse($method, $ir, $username = null)
      {
          $cmd = $this->_command('AUTHENTICATE')->add($method);
  
          if ($this->_capability('SASL-IR')) {
              // IMAP Extension for SASL Initial Client Response (RFC 4959)
              $cmd->add($ir);
              if ($username) {
                  $cmd->debug = array(
                      sprintf('AUTHENTICATE %s [INITIAL CLIENT RESPONSE (username: %s)]', $method, $username)
                  );
              }
          } else {
              $cmd->add(
                  new Horde_Imap_Client_Interaction_Command_Continuation(function($ob) use ($ir) {
                      return new Horde_Imap_Client_Data_Format_List($ir);
                  })
              );
              if ($username) {
                  $cmd->debug = array(
                      null,
                      sprintf('[INITIAL CLIENT RESPONSE (username: %s)]', $username)
                  );
              }
          }
  
          return $cmd;
      }
code_tokens: protected function _authInitialResponse ( $ method , $ ir , $ username = null ) { $ cmd = $ this -> _command ( 'AUTHENTICATE' ) -> add ( $ method ) ; if ( $ this -> _capability ( 'SASL-IR' ) ) { // IMAP Extension for SASL Initial Client Response (RFC 4959) $ cmd -> add ( $ ir ) ; if ( $ username ) { $ cmd -> debug = array ( sprintf ( 'AUTHENTICATE %s [INITIAL CLIENT RESPONSE (username: %s)]' , $ method , $ username ) ) ; } } else { $ cmd -> add ( new Horde_Imap_Client_Interaction_Command_Continuation ( function ( $ ob ) use ( $ ir ) { return new Horde_Imap_Client_Data_Format_List ( $ ir ) ; } ) ) ; if ( $ username ) { $ cmd -> debug = array ( null , sprintf ( '[INITIAL CLIENT RESPONSE (username: %s)]' , $ username ) ) ; } } return $ cmd ; }
docstring: Create the AUTHENTICATE command for the initial client response.
  
  @param string $method    AUTHENTICATE SASL method.
  @param string $ir        Initial client response.
  @param string $username  If set, log a username message in debug log
  instead of raw data.
  
  @return Horde_Imap_Client_Interaction_Command  A command object.
docstring_tokens: Create the AUTHENTICATE command for the initial client response .