source/php/Event.php
/**
     * Validates url
     * @param  string  $url Url to validate
     * @return boolean
     */
Validates url
@param  string  $url Url to validate
@return boolean
Validates url @param string $url Url to validate @return boolean
private static function isUrl($url)
    {
        if (is_string($url) && preg_match('/^(?:[;\/?:@&=+$,]|(?:[^\W_]|[-_.!~*\()\[\] ])|(?:%[\da-fA-F]{2}))*$/', $url)) {
            return true;
        }
        return false;
    }
private static function isUrl ( $ url ) { if ( is_string ( $ url ) && preg_match ( '/^(?:[;\/?:@&=+$,]|(?:[^\W_]|[-_.!~*\()\[\] ])|(?:%[\da-fA-F]{2}))*$/' , $ url ) ) { return true ; } return false ; }
Validates url
 @param  string  $url Url to validate
 @return boolean
Validates url @param string $url Url to validate @return boolean