All function braces need to be on new line

This commit is contained in:
QWp6t
2015-12-29 17:41:21 -08:00
committed by Ben Word
parent 9e2917e4d5
commit b491f76974
4 changed files with 31 additions and 14 deletions

View File

@@ -18,17 +18,20 @@ class Asset
protected $dir;
public function __construct($file, ManifestInterface $manifest = null) {
public function __construct($file, ManifestInterface $manifest = null)
{
$this->manifest = $manifest;
$this->asset = basename($file);
$this->dir = dirname($file) != '.' ? dirname($file) : '';
}
public function __toString() {
public function __toString()
{
return $this->getUri();
}
public function getUri() {
public function getUri()
{
$file = ($this->manifest ? $this->manifest->get($this->asset) : $this->asset);
return get_template_directory_uri() . self::$dist . '/' . $this->dir . '/' . $file;
}