original_string: public static function getCurrentUrlWithoutQueryString($checkTrustedHost = true)
      {
          return self::getCurrentScheme() . '://'
          . self::getCurrentHost($default = 'unknown', $checkTrustedHost)
          . self::getCurrentScriptName(false);
      }
code: public static function getCurrentUrlWithoutQueryString($checkTrustedHost = true)
      {
          return self::getCurrentScheme() . '://'
          . self::getCurrentHost($default = 'unknown', $checkTrustedHost)
          . self::getCurrentScriptName(false);
      }
code_tokens: public static function getCurrentUrlWithoutQueryString ( $ checkTrustedHost = true ) { return self :: getCurrentScheme ( ) . '://' . self :: getCurrentHost ( $ default = 'unknown' , $ checkTrustedHost ) . self :: getCurrentScriptName ( false ) ; }
docstring: Returns the current URL without the query string.
  
  @param bool $checkTrustedHost Whether to do trusted host check. Should ALWAYS be true,
  except in {@link Piwik\Plugin\Controller}.
  @return string eg, `"http://example.org/dir1/dir2/index.php"` if the current URL is
  `"http://example.org/dir1/dir2/index.php?param1=value1&param2=value2"`.
  @api
docstring_tokens: Returns the current URL without the query string .