protected function formatPath(string $path): string
    {
        $path = $this->filterPath($path)->withoutDotSegments();
        if ('' !== $this->base_uri->getAuthority() && '' !== $path->__toString()) {
            $path = $path->withLeadingSlash();
        }

        return (string) $path;
    }
protected function formatPath(string $path): string
    {
        $path = $this->filterPath($path)->withoutDotSegments();
        if ('' !== $this->base_uri->getAuthority() && '' !== $path->__toString()) {
            $path = $path->withLeadingSlash();
        }

        return (string) $path;
    }
protected function formatPath ( string $ path ) : string { $ path = $ this -> filterPath ( $ path ) -> withoutDotSegments ( ) ; if ( '' !== $ this -> base_uri -> getAuthority ( ) && '' !== $ path -> __toString ( ) ) { $ path = $ path -> withLeadingSlash ( ) ; } return ( string ) $ path ; }
Format the resolved path

@param string $path

@return string
Format the resolved path