original_string: public function getUserModes(ConnectionInterface $connection, $channel, $nick)
      {
          $connectionMask = $this->getConnectionMask($connection);
          if (isset($this->modes[$connectionMask][$channel][$nick])) {
              return array_keys($this->modes[$connectionMask][$channel][$nick]);
          }
          return array();
      }
code: public function getUserModes(ConnectionInterface $connection, $channel, $nick)
      {
          $connectionMask = $this->getConnectionMask($connection);
          if (isset($this->modes[$connectionMask][$channel][$nick])) {
              return array_keys($this->modes[$connectionMask][$channel][$nick]);
          }
          return array();
      }
code_tokens: public function getUserModes ( ConnectionInterface $ connection , $ channel , $ nick ) { $ connectionMask = $ this -> getConnectionMask ( $ connection ) ; if ( isset ( $ this -> modes [ $ connectionMask ] [ $ channel ] [ $ nick ] ) ) { return array_keys ( $ this -> modes [ $ connectionMask ] [ $ channel ] [ $ nick ] ) ; } return array ( ) ; }
docstring: Returns a list of modes for a user in a particular channel.
  
  @param \Phergie\Irc\ConnectionInterface $connection
  @param string $channel
  @param string $nick
  @return array Enumerated array of mode letters or an empty array if the
  user has no modes in the specified channel
docstring_tokens: Returns a list of modes for a user in a particular channel .