| 1 |
<?php |
| 2 |
/** |
| 3 |
* SCSSPHP |
| 4 |
* |
| 5 |
* @copyright 2012-2015 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 |
* SCSS compact formatter |
| 18 |
* |
| 19 |
* @author Leaf Corcoran <leafot@gmail.com> |
| 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 |
} |
| 36 |
|
| 37 |
/** |
| 38 |
* {@inheritdoc} |
| 39 |
*/ |
| 40 |
public function indentStr() |
| 41 |
{ |
| 42 |
return ' '; |
| 43 |
} |
| 44 |
} |
| 45 |
|