src/includes/classes/Core/Utils/UrlHost.php
public function unParse(array $parts): string
    {
        $name = $port= '';

        if (isset($parts['name'][0])) {
            $name = $parts['name'];
        }
        if (isset($parts['port'][0])) {
            $port = ':'.$parts['port'];
        }
        return $name.$port;
    }
public function unParse(array $parts): string
    {
        $name = $port= '';

        if (isset($parts['name'][0])) {
            $name = $parts['name'];
        }
        if (isset($parts['port'][0])) {
            $port = ':'.$parts['port'];
        }
        return $name.$port;
    }
Unparses a host.

@since 151002 Adding host parser.
@since 170124.74961 Collecting both `name` and `port` now.

@param array $parts Input host parts.

@return string Unparsed host string.