Helper function to ensure flagged words don't get overridden

Paramètres

(mixed) obj: Array/String of definitions to be checked:

1 call to CSSCompression_Combine::checkUncombinables()
CSSCompression_Combine::searchDefinitions dans advagg_css_compress/css-compressor-3.x/src/lib/Combine.inc
Helper function to ensure all values of search array exist within the storage array

Fichier

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

Classe

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

Code

public function checkUncombinables($obj) {
    if (is_array($obj)) {
        foreach ($obj as $item) {
            if (preg_match($this->rimportant, $item)) {
                return true;
            }
        }
        return false;
    }
    else {
        return preg_match($this->rimportant, $obj);
    }
}