Passed
Push — master ( d4a329...711fef )
by Jeroen De
03:36
created

Compact   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

2 Methods

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