private function addAsset($type, $uri)
    {
        if(!array_key_exists($type, $this->assets)){
            $this->assets[$type] = array();
        }
        if(!empty($uri) && !in_array($uri, $this->assets[$type])){
            $this->assets[$type][] = $uri;
        }
    }
private function addAsset($type, $uri)
    {
        if(!array_key_exists($type, $this->assets)){
            $this->assets[$type] = array();
        }
        if(!empty($uri) && !in_array($uri, $this->assets[$type])){
            $this->assets[$type][] = $uri;
        }
    }
private function addAsset ( $ type , $ uri ) { if ( ! array_key_exists ( $ type , $ this -> assets ) ) { $ this -> assets [ $ type ] = array ( ) ; } if ( ! empty ( $ uri ) && ! in_array ( $ uri , $ this -> assets [ $ type ] ) ) { $ this -> assets [ $ type ] [ ] = $ uri ; } }
Add the asset to the current list
@param string $type the asset type: img, css, js, audio, video, font, etc.
@param string $uri the asset URI
Add the asset to the current list