original_string: public function filter(EventInterface $event)
      {
          if (!$event instanceof UserEventInterface) {
              return null;
          }
  
          $channels = $this->getChannels($event);
          if (empty($channels)) {
              return null;
          }
  
          $commonChannels = array_intersect($channels, $this->channels);
          if ($commonChannels) {
              return true;
          }
  
          return false;
      }
code: public function filter(EventInterface $event)
      {
          if (!$event instanceof UserEventInterface) {
              return null;
          }
  
          $channels = $this->getChannels($event);
          if (empty($channels)) {
              return null;
          }
  
          $commonChannels = array_intersect($channels, $this->channels);
          if ($commonChannels) {
              return true;
          }
  
          return false;
      }
code_tokens: public function filter ( EventInterface $ event ) { if ( ! $ event instanceof UserEventInterface ) { return null ; } $ channels = $ this -> getChannels ( $ event ) ; if ( empty ( $ channels ) ) { return null ; } $ commonChannels = array_intersect ( $ channels , $ this -> channels ) ; if ( $ commonChannels ) { return true ; } return false ; }
docstring: Filters events that are not channel-specific or originate in specified
  channels.
  
  @param \Phergie\Irc\Event\EventInterface $event
  @return boolean|null TRUE if the event originated from a matching channel
  associated with this filter, FALSE if it originated from a non-matching
  channel, or NULL if it is not associated with a channel.
docstring_tokens: Filters events that are not channel - specific or originate in specified channels .