private function CSSCompression_Numeric::units in Advanced CSS/JS Aggregation 7
Same name and namespace in other branches
- 6 advagg_css_compress/css-compressor-3.x/src/lib/Numeric.inc \CSSCompression_Numeric::units()
Removes suffix from 0 unit, ie 0px; => 0;
Parameters
(string) str: Unit string:
1 call to CSSCompression_Numeric::units()
- CSSCompression_Numeric::numeric in advagg_css_compress/
css-compressor-3.x/ src/ lib/ Numeric.inc - Runs all numeric operations
File
- advagg_css_compress/
css-compressor-3.x/ src/ lib/ Numeric.inc, line 64
Class
- CSSCompression_Numeric
- CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com
Code
private function units($str) {
if (preg_match($this->runit, $str, $match)) {
$str = '0';
}
return $str;
}