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

Compact::indentStr()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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