Merge branch '5.2' into 5.3
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / api / scssphp / scssphp / src / Formatter / Compact.php
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 <leafot@gmail.com>
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 }