protected function findProvider($url)
    {
        foreach ($this->providers as $regex => $provider) {
            if (preg_match("#^$regex.*$#i", $url)) {
                return $provider;
            }
        }

        return false;
    }
protected function findProvider($url)
    {
        foreach ($this->providers as $regex => $provider) {
            if (preg_match("#^$regex.*$#i", $url)) {
                return $provider;
            }
        }

        return false;
    }
protected function findProvider ( $ url ) { foreach ( $ this -> providers as $ regex => $ provider ) { if ( preg_match ( "#^$regex.*$#i" , $ url ) ) { return $ provider ; } } return false ; }
Finds the provider endpoint for the given content URL.

@param string $url The content URL
@return string|false
Finds the provider endpoint for the given content URL .