protected function getMethod($url)
    {
        $urlInformation = @parse_url($url);
        $hostName = GeneralUtility::trimExplode('.', $urlInformation['host'], true);
        foreach ($this->mediaProvider as $provider) {
            $functionName = 'process' . ucfirst($provider);
            if (in_array($provider, $hostName) && is_callable([$this, $functionName])) {
                return $functionName;
            }
        }
        return null;
    }
protected function getMethod($url)
    {
        $urlInformation = @parse_url($url);
        $hostName = GeneralUtility::trimExplode('.', $urlInformation['host'], true);
        foreach ($this->mediaProvider as $provider) {
            $functionName = 'process' . ucfirst($provider);
            if (in_array($provider, $hostName) && is_callable([$this, $functionName])) {
                return $functionName;
            }
        }
        return null;
    }
protected function getMethod ( $ url ) { $ urlInformation = @ parse_url ( $ url ) ; $ hostName = GeneralUtility :: trimExplode ( '.' , $ urlInformation [ 'host' ] , true ) ; foreach ( $ this -> mediaProvider as $ provider ) { $ functionName = 'process' . ucfirst ( $ provider ) ; if ( in_array ( $ provider , $ hostName ) && is_callable ( [ $ this , $ functionName ] ) ) { return $ functionName ; } } return null ; }
Resolves if possible a method name to process the url

@param string $url
@return string|null
Resolves if possible a method name to process the url