original_string: protected function getCurrentUri()
      {
          $uri = isset($_SERVER['REQUEST_URI'])
              ? $_SERVER['REQUEST_URI']
              : false;
          if (!$uri) {
              $uri = $_SERVER['SCRIPT_NAME'];
              if (isset($_SERVER['argv']) || isset($_SERVER['QUERY_STRING'])) {
                  $uri .= '?';
                  $uri .= isset($_SERVER['argv'])
                      ? $_SERVER['argv'][0]
                      : $_SERVER['QUERY_STRING'];
              }
          }
          return 'http'
              . (isset($_SERVER['HTTPS']) ? 's' : '')
              . '://'
              . $_SERVER['HTTP_HOST']
              . '/'
              . ltrim($uri, '/');
      }
code: protected function getCurrentUri()
      {
          $uri = isset($_SERVER['REQUEST_URI'])
              ? $_SERVER['REQUEST_URI']
              : false;
          if (!$uri) {
              $uri = $_SERVER['SCRIPT_NAME'];
              if (isset($_SERVER['argv']) || isset($_SERVER['QUERY_STRING'])) {
                  $uri .= '?';
                  $uri .= isset($_SERVER['argv'])
                      ? $_SERVER['argv'][0]
                      : $_SERVER['QUERY_STRING'];
              }
          }
          return 'http'
              . (isset($_SERVER['HTTPS']) ? 's' : '')
              . '://'
              . $_SERVER['HTTP_HOST']
              . '/'
              . ltrim($uri, '/');
      }
code_tokens: protected function getCurrentUri ( ) { $ uri = isset ( $ _SERVER [ 'REQUEST_URI' ] ) ? $ _SERVER [ 'REQUEST_URI' ] : false ; if ( ! $ uri ) { $ uri = $ _SERVER [ 'SCRIPT_NAME' ] ; if ( isset ( $ _SERVER [ 'argv' ] ) || isset ( $ _SERVER [ 'QUERY_STRING' ] ) ) { $ uri .= '?' ; $ uri .= isset ( $ _SERVER [ 'argv' ] ) ? $ _SERVER [ 'argv' ] [ 0 ] : $ _SERVER [ 'QUERY_STRING' ] ; } } return 'http' . ( isset ( $ _SERVER [ 'HTTPS' ] ) ? 's' : '' ) . '://' . $ _SERVER [ 'HTTP_HOST' ] . '/' . ltrim ( $ uri , '/' ) ; }
docstring: Gets the current uri.
  
  @return string
  The current uri.
docstring_tokens: Gets the current uri .