protected filterHost ( string $host ) : string | ||
$host | string | |
return | string |
protected function filterHost(string $host) : string
{
if (strrpos($host, ':', -1)) {
return $host;
}
return '//' . $host;
}