Minify_HTML::_removeStyleCB PHP Method

_removeStyleCB() protected method

protected _removeStyleCB ( $m )
    protected function _removeStyleCB($m)
    {
        $openStyle = "<style{$m[1]}";
        $css = $m[2];
        // remove HTML comments
        $css = preg_replace('/(?:^\\s*<!--|-->\\s*$)/', '', $css);
        // remove CDATA section markers
        $css = $this->_removeCdata($css);
        // minify
        $minifier = $this->_cssMinifier ? $this->_cssMinifier : 'trim';
        $css = call_user_func($minifier, $css);
        return $this->_reservePlace($this->_needsCdata($css) ? "{$openStyle}/*<![CDATA[*/{$css}/*]]>*/</style>" : "{$openStyle}{$css}</style>");
    }