So would become:

```
if ($this->asset_host)
{
    return trim($this->asset_host, '/').'/'.trim($path, '/');
}
else
{
    $root = $this->getRootUrl($this->getScheme($secure));
    return $this->removeIndex($root).'/'.trim($path, '/');
}
```