Passed
Push — add/6 ( 1ceb7c...3ff08f )
by
unknown
09:22 queued 04:37
created

Compact   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A indentStr() 0 3 1
A __construct() 0 10 1
1
<?php
2
/**
3
 * SCSSPHP
4
 *
5
 * @copyright 2012-2018 Leaf Corcoran
6
 *
7
 * @license http://opensource.org/licenses/MIT MIT
8
 *
9
 * @link http://leafo.github.io/scssphp
10
 */
11
12
namespace Leafo\ScssPhp\Formatter;
13
14
use Leafo\ScssPhp\Formatter;
15
16
/**
17
 * Compact formatter
18
 *
19
 * @author Leaf Corcoran <[email protected]>
20
 */
21
class Compact extends Formatter
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function __construct()
27
    {
28
        $this->indentLevel = 0;
29
        $this->indentChar = '';
30
        $this->break = '';
31
        $this->open = ' {';
32
        $this->close = "}\n\n";
33
        $this->tagSeparator = ',';
34
        $this->assignSeparator = ':';
35
        $this->keepSemicolons = true;
36
    }
37
38
    /**
39
     * {@inheritdoc}
40
     */
41
    public function indentStr()
42
    {
43
        return ' ';
44
    }
45
}
46