src/Core/Asset/AssetManager.php
public function root($uri = null, $version = false)
    {
        if ($version === true) {
            $version = $this->getVersion();
        }

        if ($version) {
            if (strpos($uri, '?') !== false) {
                $uri .= '&' . $version;
            } else {
                $uri .= '?' . $version;
            }
        }

        if ($uri !== null) {
            return $this->root . '/' . $uri;
        }

        return $this->root;
    }
public function root($uri = null, $version = false)
    {
        if ($version === true) {
            $version = $this->getVersion();
        }

        if ($version) {
            if (strpos($uri, '?') !== false) {
                $uri .= '&' . $version;
            } else {
                $uri .= '?' . $version;
            }
        }

        if ($uri !== null) {
            return $this->root . '/' . $uri;
        }

        return $this->root;
    }
public function root ( $ uri = null , $ version = false ) { if ( $ version === true ) { $ version = $ this -> getVersion ( ) ; } if ( $ version ) { if ( strpos ( $ uri , '?' ) !== false ) { $ uri .= '&' . $ version ; } else { $ uri .= '?' . $ version ; } } if ( $ uri !== null ) { return $ this -> root . '/' . $ uri ; } return $ this -> root ; }
Method to get property Root

@param  string $uri
@param  bool   $version

@return string
Method to get property Root