protected function getScriptSrc($onloadCallbackName)
    {
        $url = static::SCRIPT_URL;

        $queryArgs = [];
        \parse_str(\parse_url($url, PHP_URL_QUERY), $queryArgs);

        $queryArgs['onload'] = $onloadCallbackName;
        $queryArgs['render'] = 'explicit';

        $url = \sprintf('%s?%s', \strtok($url, '?'), \http_build_query($queryArgs));

        return $url;
    }
protected function getScriptSrc($onloadCallbackName)
    {
        $url = static::SCRIPT_URL;

        $queryArgs = [];
        \parse_str(\parse_url($url, PHP_URL_QUERY), $queryArgs);

        $queryArgs['onload'] = $onloadCallbackName;
        $queryArgs['render'] = 'explicit';

        $url = \sprintf('%s?%s', \strtok($url, '?'), \http_build_query($queryArgs));

        return $url;
    }
protected function getScriptSrc ( $ onloadCallbackName ) { $ url = static :: SCRIPT_URL ; $ queryArgs = [ ] ; \ parse_str ( \ parse_url ( $ url , PHP_URL_QUERY ) , $ queryArgs ) ; $ queryArgs [ 'onload' ] = $ onloadCallbackName ; $ queryArgs [ 'render' ] = 'explicit' ; $ url = \ sprintf ( '%s?%s' , \ strtok ( $ url , '?' ) , \ http_build_query ( $ queryArgs ) ) ; return $ url ; }
Returns the recaptcha API script source with an onload callback.

@param string $onloadCallbackName

@return string
Returns the recaptcha API script source with an onload callback .