| 1 |
<?php |
| 2 |
/** |
| 3 |
* This file is part of the Peast package |
| 4 |
* |
| 5 |
* (c) Marco Marchiò <[email protected]> |
| 6 |
* |
| 7 |
* For the full copyright and license information refer to the LICENSE file |
| 8 |
* distributed with this source code |
| 9 |
*/ |
| 10 |
namespace Peast\Formatter; |
| 11 |
|
| 12 |
/** |
| 13 |
* Compact formatter. |
| 14 |
* |
| 15 |
* @author Marco Marchiò <[email protected]> |
| 16 |
*/ |
| 17 |
class Compact extends Base |
| 18 |
{ |
| 19 |
/** |
| 20 |
* New line character |
| 21 |
* |
| 22 |
* @var string |
| 23 |
*/ |
| 24 |
protected $newLine = ""; |
| 25 |
|
| 26 |
/** |
| 27 |
* Indentation character |
| 28 |
* |
| 29 |
* @var string |
| 30 |
*/ |
| 31 |
protected $indentation = ""; |
| 32 |
|
| 33 |
/** |
| 34 |
* Boolean that indicates if operators must be surrounded by spaces |
| 35 |
* |
| 36 |
* @var bool |
| 37 |
*/ |
| 38 |
protected $spacesAroundOperators = false; |
| 39 |
|
| 40 |
/** |
| 41 |
* Boolean that indicates if blocks of code must be wrapped in curly |
| 42 |
* brackets also if they contain only one instruction |
| 43 |
* |
| 44 |
* @var bool |
| 45 |
*/ |
| 46 |
protected $alwaysWrapBlocks = false; |
| 47 |
|
| 48 |
/** |
| 49 |
* Boolean that indicates if comments must be rendered |
| 50 |
* |
| 51 |
* @var bool |
| 52 |
*/ |
| 53 |
protected $renderComments = false; |
| 54 |
} |