You are here

public function CSSCompression_Combine::checkUncombinables in Advanced CSS/JS Aggregation 7

Same name and namespace in other branches
  1. 6 advagg_css_compress/css-compressor-3.x/src/lib/Combine.inc \CSSCompression_Combine::checkUncombinables()

Helper function to ensure flagged words don't get overridden

Parameters

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

1 call to CSSCompression_Combine::checkUncombinables()
CSSCompression_Combine::searchDefinitions in 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

File

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

Class

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);
  }
}