source/Core/UtilsUrl.php
private function parseUrlAndAppendSchema($url, $flag, $appendScheme = 'http')
    {
        if (!filter_var($url, FILTER_VALIDATE_URL)) {
            $url = $appendScheme . '://' . $url;
        }

        return parse_url($url, $flag);
    }
private function parseUrlAndAppendSchema($url, $flag, $appendScheme = 'http')
    {
        if (!filter_var($url, FILTER_VALIDATE_URL)) {
            $url = $appendScheme . '://' . $url;
        }

        return parse_url($url, $flag);
    }
private function parseUrlAndAppendSchema ( $ url , $ flag , $ appendScheme = 'http' ) { if ( ! filter_var ( $ url , FILTER_VALIDATE_URL ) ) { $ url = $ appendScheme . '://' . $ url ; } return parse_url ( $ url , $ flag ) ; }
Improved url parsing with parse_url as base and scheme checking improvement in url preprocessing

@param string $url
@param string $flag
@param string $appendScheme Append this scheme to url if no scheme found

@return string
Improved url parsing with parse_url as base and scheme checking improvement in url preprocessing