File tree Expand file tree Collapse file tree 1 file changed +2
-28
lines changed
Expand file tree Collapse file tree 1 file changed +2
-28
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Leafo \ScssPhp \Formatter ;
1313
14- use Leafo \ScssPhp \Formatter ;
14+ use Leafo \ScssPhp \Formatter \ Crunched ;
1515use Leafo \ScssPhp \Formatter \OutputBlock ;
1616
1717/**
1818 * Compressed formatter
1919 *
2020 * @author Leaf Corcoran <leafot@gmail.com>
2121 */
22- class Compressed extends Formatter
22+ class Compressed extends Crunched
2323{
24- /**
25- * {@inheritdoc}
26- */
27- public function __construct ()
28- {
29- $ this ->indentLevel = 0 ;
30- $ this ->indentChar = ' ' ;
31- $ this ->break = '' ;
32- $ this ->open = '{ ' ;
33- $ this ->close = '} ' ;
34- $ this ->tagSeparator = ', ' ;
35- $ this ->assignSeparator = ': ' ;
36- }
37-
38- /**
39- * {@inheritdoc}
40- */
41- public function stripSemicolon (&$ lines )
42- {
43- if (($ count = count ($ lines ))
44- && substr ($ lines [$ count - 1 ], -1 ) === '; '
45- ) {
46- $ lines [$ count - 1 ] = substr ($ lines [$ count - 1 ], 0 , -1 );
47- }
48- }
49-
5024 /**
5125 * {@inheritdoc}
5226 */
You can’t perform that action at this time.
0 commit comments