Piwik\Plugins\SitesManager\API::getNormalizedUrls PHP Method

getNormalizedUrls() protected method

protected getNormalizedUrls ( $url )
    protected function getNormalizedUrls($url)
    {
        // if found, remove scheme and www. from URL
        $hostname = str_replace('www.', '', $url);
        $hostname = str_replace('http://', '', $hostname);
        $hostname = str_replace('https://', '', $hostname);
        // return all variations of the URL
        return array($url, "http://" . $hostname, "http://www." . $hostname, "https://" . $hostname, "https://www." . $hostname);
    }