Classes/Service/GoogleSitemapService.php
public function sendRequest()
    {
        $curlInit = curl_init();
        curl_setopt($curlInit, CURLOPT_URL, $this->getGoogleSitemapToolUrl());
        curl_setopt($curlInit, CURLOPT_HEADER, true);
        curl_setopt($curlInit, CURLOPT_NOBODY, true);
        curl_setopt($curlInit, CURLOPT_RETURNTRANSFER, true);
        curl_exec($curlInit);
        $httpCode = curl_getinfo($curlInit, CURLINFO_HTTP_CODE);
        curl_close($curlInit);

        return $httpCode;
    }
public function sendRequest()
    {
        $curlInit = curl_init();
        curl_setopt($curlInit, CURLOPT_URL, $this->getGoogleSitemapToolUrl());
        curl_setopt($curlInit, CURLOPT_HEADER, true);
        curl_setopt($curlInit, CURLOPT_NOBODY, true);
        curl_setopt($curlInit, CURLOPT_RETURNTRANSFER, true);
        curl_exec($curlInit);
        $httpCode = curl_getinfo($curlInit, CURLINFO_HTTP_CODE);
        curl_close($curlInit);

        return $httpCode;
    }
public function sendRequest ( ) { $ curlInit = curl_init ( ) ; curl_setopt ( $ curlInit , CURLOPT_URL , $ this -> getGoogleSitemapToolUrl ( ) ) ; curl_setopt ( $ curlInit , CURLOPT_HEADER , true ) ; curl_setopt ( $ curlInit , CURLOPT_NOBODY , true ) ; curl_setopt ( $ curlInit , CURLOPT_RETURNTRANSFER , true ) ; curl_exec ( $ curlInit ) ; $ httpCode = curl_getinfo ( $ curlInit , CURLINFO_HTTP_CODE ) ; curl_close ( $ curlInit ) ; return $ httpCode ; }
Send the request to google

@return int
Send the request to google