original_string: public static function redirectToHttps()
      {
          if (ProxyHttp::isHttps()) {
              return;
          }
          $url = self::getCurrentUrl();
          $url = str_replace("http://", "https://", $url);
          self::redirectToUrl($url);
      }
code: public static function redirectToHttps()
      {
          if (ProxyHttp::isHttps()) {
              return;
          }
          $url = self::getCurrentUrl();
          $url = str_replace("http://", "https://", $url);
          self::redirectToUrl($url);
      }
code_tokens: public static function redirectToHttps ( ) { if ( ProxyHttp :: isHttps ( ) ) { return ; } $ url = self :: getCurrentUrl ( ) ; $ url = str_replace ( "http://" , "https://" , $ url ) ; self :: redirectToUrl ( $ url ) ; }
docstring: If the page is using HTTP, redirect to the same page over HTTPS
docstring_tokens: If the page is using HTTP redirect to the same page over HTTPS