Runs final counts on selectors and props

Parameters

(array) selectors: Selector rules:

(array) details: Rule sets:

1 call to CSSCompression_Compress::finalCount()
CSSCompression_Compress::rulesets in advagg_css_compress/css-compressor-3.x/src/lib/Compress.inc
Focus compressions on each rule set

File

advagg_css_compress/css-compressor-3.x/src/lib/Compress.inc, line 154

Class

CSSCompression_Compress
CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com

Code

private function finalCount($selectors, $details) {
    // Selectors and props
    $this->stats['after']['selectors'] = count($selectors);
    foreach ($details as $item) {
        $props = preg_split($this->rsemicolon, $item);
        // Make sure count is true
        foreach ($props as $k => $v) {
            if (!isset($v) || $v == '') {
                unset($props[$k]);
            }
        }
        $this->stats['after']['props'] += count($props);
    }
    // Final count for stats
    $this->stats['after']['time'] = microtime(true);
}