private function fixUrl($url) { $scheme = parse_url($url, PHP_URL_SCHEME); if (null === $scheme) { return 'http://' . $url; } return $url; }