You are here

private function CSSCompression_Trim::strip in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 7 advagg_css_compress/css-compressor-3.x/src/lib/Trim.inc \CSSCompression_Trim::strip()

Runs initial formatting to setup for compression

Parameters

(string) css: CSS Contents:

1 call to CSSCompression_Trim::strip()
CSSCompression_Trim::trim in advagg_css_compress/css-compressor-3.x/src/lib/Trim.inc
Central trim handler

File

advagg_css_compress/css-compressor-3.x/src/lib/Trim.inc, line 191

Class

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

Code

private function strip($css) {

  // Run replacements
  return trim(preg_replace($this->trimmings['patterns'], $this->trimmings['replacements'], $css));
}