protected function getAssets($container, $type)
    {
        if ( ! isset($this->containers[$container])) {
            return [];
        }

        $container = $this->containers[$container];

        if ( ! isset($container->assets[$type]) || 0 === count($container->assets[$type])) {
            return [];
        }

        $assets = $container->assets[$type];

        $assets = $this->arrange($assets);

        return $assets;
    }
protected function getAssets($container, $type)
    {
        if ( ! isset($this->containers[$container])) {
            return [];
        }

        $container = $this->containers[$container];

        if ( ! isset($container->assets[$type]) || 0 === count($container->assets[$type])) {
            return [];
        }

        $assets = $container->assets[$type];

        $assets = $this->arrange($assets);

        return $assets;
    }
protected function getAssets ( $ container , $ type ) { if ( ! isset ( $ this -> containers [ $ container ] ) ) { return [ ] ; } $ container = $ this -> containers [ $ container ] ; if ( ! isset ( $ container -> assets [ $ type ] ) || 0 === count ( $ container -> assets [ $ type ] ) ) { return [ ] ; } $ assets = $ container -> assets [ $ type ] ; $ assets = $ this -> arrange ( $ assets ) ; return $ assets ; }
Get all assets of a given type from a given container

@param $container
@param $type
@return array
Get all assets of a given type from a given container