/** * Set the protocol of the current web server * @param string $protocol protocol name * @return void */ public static function setProtocol(string $protocol = null) { if (false === is_null($protocol)) { View::$protocol = $protocol; return; } View::$protocol = "//"; }