src/VDB/Uri/Uri.php
private function mergeBasePath()
    {
        if (null !== $this->baseUri->authority && '' === $this->baseUri->path) {
            $this->path = '/' . $this->path;
        } else {
            if (false !== $lastSlashPos = strrpos($this->baseUri->path, '/')) {
                $basePath = substr($this->baseUri->path, 0, $lastSlashPos + 1);
                $this->path = $basePath . $this->path;
            }
        }
    }
private function mergeBasePath()
    {
        if (null !== $this->baseUri->authority && '' === $this->baseUri->path) {
            $this->path = '/' . $this->path;
        } else {
            if (false !== $lastSlashPos = strrpos($this->baseUri->path, '/')) {
                $basePath = substr($this->baseUri->path, 0, $lastSlashPos + 1);
                $this->path = $basePath . $this->path;
            }
        }
    }
private function mergeBasePath ( ) { if ( null !== $ this -> baseUri -> authority && '' === $ this -> baseUri -> path ) { $ this -> path = '/' . $ this -> path ; } else { if ( false !== $ lastSlashPos = strrpos ( $ this -> baseUri -> path , '/' ) ) { $ basePath = substr ( $ this -> baseUri -> path , 0 , $ lastSlashPos + 1 ) ; $ this -> path = $ basePath . $ this -> path ; } } }
From RFC 3986 paragraph 5.2.3
From RFC 3986 paragraph 5 . 2 . 3