src/Url.php
public static function getBaseUrl()
    {
        $uri = self::addBackSlash(self::getUriMethods(), 'both');
        $url = self::addBackSlash(self::getCurrentPage());

        if ($uri !== '/') {
            $url = trim(str_replace($uri, '', $url), '/');
        }

        return self::addBackSlash($url);
    }
public static function getBaseUrl()
    {
        $uri = self::addBackSlash(self::getUriMethods(), 'both');
        $url = self::addBackSlash(self::getCurrentPage());

        if ($uri !== '/') {
            $url = trim(str_replace($uri, '', $url), '/');
        }

        return self::addBackSlash($url);
    }
Get base URL of the site.

@since 1.1.0

@return string → URL