static function compressCSS($code) {
        $code = self::clearWhitespaces($code);
        $code = preg_replace('/ ?\{ ?/', "{", $code);
        $code = preg_replace('/ ?\} ?/', "}", $code);
        $code = preg_replace('/ ?\; ?/', ";", $code);
        $code = preg_replace('/ ?\> ?/', ">", $code);
        $code = preg_replace('/ ?\, ?/', ",", $code);
        $code = preg_replace('/ ?\: ?/', ":", $code);
        $code = str_replace(";}", "}", $code);
        return $code;
    }
static function compressCSS($code) {
        $code = self::clearWhitespaces($code);
        $code = preg_replace('/ ?\{ ?/', "{", $code);
        $code = preg_replace('/ ?\} ?/', "}", $code);
        $code = preg_replace('/ ?\; ?/', ";", $code);
        $code = preg_replace('/ ?\> ?/', ">", $code);
        $code = preg_replace('/ ?\, ?/', ",", $code);
        $code = preg_replace('/ ?\: ?/', ":", $code);
        $code = str_replace(";}", "}", $code);
        return $code;
    }
static function compressCSS ( $ code ) { $ code = self :: clearWhitespaces ( $ code ) ; $ code = preg_replace ( '/ ?\{ ?/' , "{" , $ code ) ; $ code = preg_replace ( '/ ?\} ?/' , "}" , $ code ) ; $ code = preg_replace ( '/ ?\; ?/' , ";" , $ code ) ; $ code = preg_replace ( '/ ?\> ?/' , ">" , $ code ) ; $ code = preg_replace ( '/ ?\, ?/' , "," , $ code ) ; $ code = preg_replace ( '/ ?\: ?/' , ":" , $ code ) ; $ code = str_replace ( ";}" , "}" , $ code ) ; return $ code ; }
Returns compressed content of given CSS code
@param string $code
@return string
Returns compressed content of given CSS code