src/DebugBar/JavascriptRenderer.php
protected function getRelativeRoot($relativeTo, $basePath, $baseUrl)
    {
        if ($relativeTo === self::RELATIVE_PATH) {
            return $basePath;
        }
        if ($relativeTo === self::RELATIVE_URL) {
            return $baseUrl;
        }
        return null;
    }
protected function getRelativeRoot($relativeTo, $basePath, $baseUrl)
    {
        if ($relativeTo === self::RELATIVE_PATH) {
            return $basePath;
        }
        if ($relativeTo === self::RELATIVE_URL) {
            return $baseUrl;
        }
        return null;
    }
protected function getRelativeRoot ( $ relativeTo , $ basePath , $ baseUrl ) { if ( $ relativeTo === self :: RELATIVE_PATH ) { return $ basePath ; } if ( $ relativeTo === self :: RELATIVE_URL ) { return $ baseUrl ; } return null ; }
Returns the correct base according to the type

@param string $relativeTo
@param string $basePath
@param string $baseUrl
@return string
Returns the correct base according to the type