protected function _clearBuilds()
    {
        $themes = (array)$this->config->general('themes');
        if ($themes) {
            $this->config->theme($themes[0]);
        }
        $assets = $this->factory->assetCollection();
        if (count($assets) === 0) {
            $this->err('No build targets defined, skipping');

            return;
        }
        $targets = array_map(function ($target) {
            return $target->name();
        }, iterator_to_array($assets));

        $this->_clearPath(CACHE . 'asset_compress' . DS, $themes, $targets);
        $this->_clearPath($this->config->cachePath('js'), $themes, $targets);
        $this->_clearPath($this->config->cachePath('css'), $themes, $targets);
    }
protected function _clearBuilds()
    {
        $themes = (array)$this->config->general('themes');
        if ($themes) {
            $this->config->theme($themes[0]);
        }
        $assets = $this->factory->assetCollection();
        if (count($assets) === 0) {
            $this->err('No build targets defined, skipping');

            return;
        }
        $targets = array_map(function ($target) {
            return $target->name();
        }, iterator_to_array($assets));

        $this->_clearPath(CACHE . 'asset_compress' . DS, $themes, $targets);
        $this->_clearPath($this->config->cachePath('js'), $themes, $targets);
        $this->_clearPath($this->config->cachePath('css'), $themes, $targets);
    }
protected function _clearBuilds ( ) { $ themes = ( array ) $ this -> config -> general ( 'themes' ) ; if ( $ themes ) { $ this -> config -> theme ( $ themes [ 0 ] ) ; } $ assets = $ this -> factory -> assetCollection ( ) ; if ( count ( $ assets ) === 0 ) { $ this -> err ( 'No build targets defined, skipping' ) ; return ; } $ targets = array_map ( function ( $ target ) { return $ target -> name ( ) ; } , iterator_to_array ( $ assets ) ) ; $ this -> _clearPath ( CACHE . 'asset_compress' . DS , $ themes , $ targets ) ; $ this -> _clearPath ( $ this -> config -> cachePath ( 'js' ) , $ themes , $ targets ) ; $ this -> _clearPath ( $ this -> config -> cachePath ( 'css' ) , $ themes , $ targets ) ; }
clear the builds for a specific extension.

@return void
clear the builds for a specific extension .