original_string: protected function getChannels(UserEventInterface $event)
      {
          $command = $event->getCommand();
          if (isset($this->parameters[$command])) {
              $params = $event->getParams();
              $param = $this->parameters[$command];
              return preg_grep('/^[#&]/', explode(',', $params[$param]));
          }
          return array();
      }
code: protected function getChannels(UserEventInterface $event)
      {
          $command = $event->getCommand();
          if (isset($this->parameters[$command])) {
              $params = $event->getParams();
              $param = $this->parameters[$command];
              return preg_grep('/^[#&]/', explode(',', $params[$param]));
          }
          return array();
      }
code_tokens: protected function getChannels ( UserEventInterface $ event ) { $ command = $ event -> getCommand ( ) ; if ( isset ( $ this -> parameters [ $ command ] ) ) { $ params = $ event -> getParams ( ) ; $ param = $ this -> parameters [ $ command ] ; return preg_grep ( '/^[#&]/' , explode ( ',' , $ params [ $ param ] ) ) ; } return array ( ) ; }
docstring: Extracts a list of channel names from a user event.
  
  @param \Phergie\Irc\Event\UserEventInterface $event
  @return array
docstring_tokens: Extracts a list of channel names from a user event .