Reads through each detailed package and checks for cross defn combinations

Paramètres

(array) selectors: Array of selectors:

(array) details: Array of details:

1 call to CSSCompression_Combine::combine()
CSSCompression_Combine::access dans advagg_css_compress/css-compressor-3.x/src/lib/Combine.inc
Access to private methods for testing

Fichier

advagg_css_compress/css-compressor-3.x/src/lib/Combine.inc, line 100

Classe

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

Code

public function combine(&$selectors = array(), &$details = array()) {
    foreach ($details as $i => &$value) {
        if (isset($selectors[$i]) && strpos($selectors[$i], $this->token) === 0) {
            continue;
        }
        foreach ($this->methods as $option => $class) {
            if ($this->options[$option]) {
                $value = $this->{$class}
                    ->combine($value);
            }
        }
    }
    return array(
        $selectors,
        $details,
    );
}