Skip to content

Commit 4c6e8be

Browse files
committed
refactoring (for size)
1 parent 1152ca9 commit 4c6e8be

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

src/Formatter/Compressed.php

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,16 @@
1111

1212
namespace Leafo\ScssPhp\Formatter;
1313

14-
use Leafo\ScssPhp\Formatter;
14+
use Leafo\ScssPhp\Formatter\Crunched;
1515
use 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
*/

0 commit comments

Comments
 (0)