protected function formatPathWithEmptyBaseQuery(string $path): string
    {
        $target_segments = $this->getSegments($path);
        $basename = end($target_segments);

        return '' === $basename ? './' : $basename;
    }
protected function formatPathWithEmptyBaseQuery(string $path): string
    {
        $target_segments = $this->getSegments($path);
        $basename = end($target_segments);

        return '' === $basename ? './' : $basename;
    }
protected function formatPathWithEmptyBaseQuery ( string $ path ) : string { $ target_segments = $ this -> getSegments ( $ path ) ; $ basename = end ( $ target_segments ) ; return '' === $ basename ? './' : $ basename ; }
Formatting the path to keep a resolvable URI

@param string $path

@return string
Formatting the path to keep a resolvable URI