public function isAppropriate(FileEvent $event)
    {
        if ($this->match === false) {
            return false;
        }

        foreach ($this->match as $pattern) {
            if (preg_match($pattern, $event->realPath) > 0) {
                return true;
            }
        }
        return false;
    }
public function isAppropriate(FileEvent $event)
    {
        if ($this->match === false) {
            return false;
        }

        foreach ($this->match as $pattern) {
            if (preg_match($pattern, $event->realPath) > 0) {
                return true;
            }
        }
        return false;
    }
public function isAppropriate ( FileEvent $ event ) { if ( $ this -> match === false ) { return false ; } foreach ( $ this -> match as $ pattern ) { if ( preg_match ( $ pattern , $ event -> realPath ) > 0 ) { return true ; } } return false ; }
Check if file apply to any match.

@param FileEvent $event File event.

@return bool
Check if file apply to any match .