Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract::_cleanVcl PHP Method

_cleanVcl() protected method

Remove empty and commented out lines from the generated VCL
protected _cleanVcl ( string $dirtyVcl ) : string
$dirtyVcl string generated vcl
return string
    protected function _cleanVcl($dirtyVcl)
    {
        return implode(PHP_EOL, array_filter(Mage::helper('turpentine/data')->cleanExplode(PHP_EOL, $dirtyVcl), array($this, '_cleanVclHelper')));
    }