Look to see if we can combine selectors to reduce the number of definitions.

Parameters

(array) selectors: Array of selectors, map directly to details:

(array) details: Array of rule sets, map directly to selectors:

File

advagg_css_compress/css-compressor-3.x/src/lib/Organize.inc, line 39

Class

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

Code

public function organize(&$selectors = array(), &$details = array()) {
    // Combining defns based on similar selectors
    list($selectors, $details) = $this->reduceSelectors($selectors, $details);
    // Combining defns based on similar details
    list($selectors, $details) = $this->reduceDetails($selectors, $details);
    // Return in package form
    return array(
        $selectors,
        $details,
    );
}