public static function identify_service($url)
    {
        if (preg_match('%youtube|youtu\.be%i', $url)) {
            return self::YOUTUBE;
        } elseif (preg_match('%vimeo%i', $url)) {
            return self::VIMEO;
        } elseif (preg_match('%23video%', $url)) {
            return self::TWENTYTHREE;
        }
        return null;
    }
public static function identify_service($url)
    {
        if (preg_match('%youtube|youtu\.be%i', $url)) {
            return self::YOUTUBE;
        } elseif (preg_match('%vimeo%i', $url)) {
            return self::VIMEO;
        } elseif (preg_match('%23video%', $url)) {
            return self::TWENTYTHREE;
        }
        return null;
    }
public static function identify_service ( $ url ) { if ( preg_match ( '%youtube|youtu\.be%i' , $ url ) ) { return self :: YOUTUBE ; } elseif ( preg_match ( '%vimeo%i' , $ url ) ) { return self :: VIMEO ; } elseif ( preg_match ( '%23video%' , $ url ) ) { return self :: TWENTYTHREE ; } return null ; }
Determines which cloud video provider is being used based on the passed url.

@param string $url The url
@return null|string Null on failure to match, the service's name on success
Determines which cloud video provider is being used based on the passed url .