original_string: public function query($capability, $parameter = null)
      {
          $capability = Horde_String::upper($capability);
  
          if (!isset($this->_data[$capability])) {
              return false;
          }
  
          return is_null($parameter) ?:
                 (is_array($this->_data[$capability]) &&
                  in_array(Horde_String::upper($parameter), $this->_data[$capability]));
      }
code: public function query($capability, $parameter = null)
      {
          $capability = Horde_String::upper($capability);
  
          if (!isset($this->_data[$capability])) {
              return false;
          }
  
          return is_null($parameter) ?:
                 (is_array($this->_data[$capability]) &&
                  in_array(Horde_String::upper($parameter), $this->_data[$capability]));
      }
code_tokens: public function query ( $ capability , $ parameter = null ) { $ capability = Horde_String :: upper ( $ capability ) ; if ( ! isset ( $ this -> _data [ $ capability ] ) ) { return false ; } return is_null ( $ parameter ) ? : ( is_array ( $ this -> _data [ $ capability ] ) && in_array ( Horde_String :: upper ( $ parameter ) , $ this -> _data [ $ capability ] ) ) ; }
docstring: Returns whether the server supports the given capability.
  
  @param string $capability  The capability string to query.
  @param string $parameter   If set, require the parameter to exist.
  
  @return boolean  True if the capability (and parameter) exist.
docstring_tokens: Returns whether the server supports the given capability .