6 public static function url($url, $helpName)
8 $parts = parse_url($url);
9 if (!isset($parts['scheme'])) {
10 $url = 'http://' . $url;
11 } else if ($parts['scheme'] != 'http' && $parts['scheme'] != 'https') {
13 'Invalid URL scheme in ' . $helpName . ': ' . $parts['scheme']
18 if (!isset($parts['host'])) {
19 Log::err('Invalid URL: No host in ' . $helpName);