public static function removeDotSegments($uri)
    {
        $uri = self::filterUri($uri);

        return self::normalizePath($uri, (new Path($uri->getPath()))->withoutDotSegments());
    }
public static function removeDotSegments($uri)
    {
        $uri = self::filterUri($uri);

        return self::normalizePath($uri, (new Path($uri->getPath()))->withoutDotSegments());
    }
public static function removeDotSegments ( $ uri ) { $ uri = self :: filterUri ( $ uri ) ; return self :: normalizePath ( $ uri , ( new Path ( $ uri -> getPath ( ) ) ) -> withoutDotSegments ( ) ) ; }
Remove dot segments from the URI path.

@return Psr7UriInterface|UriInterface
Remove dot segments from the URI path .