original_string: protected function _sendLine($cmd, $options = array())
      {
          if (!empty($options['debug'])) {
              $this->_debug->client($options['debug']);
          }
  
          if ($this->_debug->debug) {
              $timer = new Horde_Support_Timer();
              $timer->push();
          }
  
          try {
              $this->_connection->write($cmd, empty($options['debug']));
          } catch (Horde_Imap_Client_Exception $e) {
              throw $e;
          }
  
          $resp = $this->_getResponse(
              empty($options['multiline']) ? false : $options['multiline']
          );
  
          if ($this->_debug->debug) {
              $this->_debug->info(sprintf(
                  'Command took %s seconds.',
                  round($timer->pop(), 4)
              ));
          }
  
          return $resp;
      }
code: protected function _sendLine($cmd, $options = array())
      {
          if (!empty($options['debug'])) {
              $this->_debug->client($options['debug']);
          }
  
          if ($this->_debug->debug) {
              $timer = new Horde_Support_Timer();
              $timer->push();
          }
  
          try {
              $this->_connection->write($cmd, empty($options['debug']));
          } catch (Horde_Imap_Client_Exception $e) {
              throw $e;
          }
  
          $resp = $this->_getResponse(
              empty($options['multiline']) ? false : $options['multiline']
          );
  
          if ($this->_debug->debug) {
              $this->_debug->info(sprintf(
                  'Command took %s seconds.',
                  round($timer->pop(), 4)
              ));
          }
  
          return $resp;
      }
code_tokens: protected function _sendLine ( $ cmd , $ options = array ( ) ) { if ( ! empty ( $ options [ 'debug' ] ) ) { $ this -> _debug -> client ( $ options [ 'debug' ] ) ; } if ( $ this -> _debug -> debug ) { $ timer = new Horde_Support_Timer ( ) ; $ timer -> push ( ) ; } try { $ this -> _connection -> write ( $ cmd , empty ( $ options [ 'debug' ] ) ) ; } catch ( Horde_Imap_Client_Exception $ e ) { throw $ e ; } $ resp = $ this -> _getResponse ( empty ( $ options [ 'multiline' ] ) ? false : $ options [ 'multiline' ] ) ; if ( $ this -> _debug -> debug ) { $ this -> _debug -> info ( sprintf ( 'Command took %s seconds.' , round ( $ timer -> pop ( ) , 4 ) ) ) ; } return $ resp ; }
docstring: Perform a command on the server. A connection to the server must have
  already been made.
  
  @param string $cmd     The command to execute.
  @param array $options  Additional options:
  <pre>
  - debug: (string) When debugging, send this string instead of the
  actual command/data sent.
  DEFAULT: Raw data output to debug stream.
  - multiline: (mixed) 'array', 'none', or 'stream'.
  </pre>
  
  @return array  See _getResponse().
  
  @throws Horde_Imap_Client_Exception
docstring_tokens: Perform a command on the server . A connection to the server must have already been made .