Piwik\Plugins\SEO\Metric\DomainAge::getUrl PHP Method

getUrl() private method

private getUrl ( $url )
    private function getUrl($url)
    {
        try {
            return str_replace(' ', ' ', Http::sendHttpRequest($url, $timeout = 10, @$_SERVER['HTTP_USER_AGENT']));
        } catch (\Exception $e) {
            $this->logger->warning('Error while getting SEO stats (domain age): {message}', array('message' => $e->getMessage()));
            return '';
        }
    }