private function getNormalizedUriPath()
    {
        $path = $this->getPath();

        if ($this->getAuthority() === '') {
            return preg_replace('#^/+#', '/', $path);
        } elseif ($path === '' || $path[0] === '/') {
            return $path;
        }

        return '/' . $path;
    }
private function getNormalizedUriPath()
    {
        $path = $this->getPath();

        if ($this->getAuthority() === '') {
            return preg_replace('#^/+#', '/', $path);
        } elseif ($path === '' || $path[0] === '/') {
            return $path;
        }

        return '/' . $path;
    }
private function getNormalizedUriPath ( ) { $ path = $ this -> getPath ( ) ; if ( $ this -> getAuthority ( ) === '' ) { return preg_replace ( '#^/+#' , '/' , $ path ) ; } elseif ( $ path === '' || $ path [ 0 ] === '/' ) { return $ path ; } return '/' . $ path ; }
Returns the path normalized for the string representation.
@return string The normalized path for the string representation
Returns the path normalized for the string representation .