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;
    }
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;
    }
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 ; }
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.
Filters events that are not channel - specific or originate in specified channels .