Horde_Css_Parser::compress PHP Method

compress() public method

Returns compressed CSS output.
public compress ( ) : string
return string Compressed CSS
    public function compress()
    {
        return str_replace(array("\n", ' {', ': ', ';}', ', '), array('', '{', ':', '}', ','), strval($this->doc));
    }

Usage Example

Example #1
0
 public function testDoubleAsteriskAtBeginningOfComment()
 {
     $a = '/** Foo */#bar{width:1px;}';
     $css = new Horde_Css_Parser($a);
     $this->assertEquals('#bar{width:1px}', $css->compress());
 }
All Usage Examples Of Horde_Css_Parser::compress
Horde_Css_Parser