@@ -17,17 +17,17 @@ discard block |
||
| 17 | 17 | //public |
| 18 | 18 | public $errors = []; |
| 19 | 19 | |
| 20 | - public const EXCLUDE_DIRECTIVES = 1;//DONT include_directive |
|
| 21 | - public const IGNORE_COMMENTS = 2;//DONT include_comments |
|
| 22 | - public const NO_PARSING_EXCEPTIONS = 4;//THROW Exception on parsing Errors |
|
| 23 | - public const NO_OBJECT_FOR_DATE = 8;//DONT import date strings as dateTime Object |
|
| 20 | + public const EXCLUDE_DIRECTIVES = 1; //DONT include_directive |
|
| 21 | + public const IGNORE_COMMENTS = 2; //DONT include_comments |
|
| 22 | + public const NO_PARSING_EXCEPTIONS = 4; //THROW Exception on parsing Errors |
|
| 23 | + public const NO_OBJECT_FOR_DATE = 8; //DONT import date strings as dateTime Object |
|
| 24 | 24 | //privates |
| 25 | 25 | /* @var null|string */ |
| 26 | 26 | private $content; |
| 27 | 27 | /* @var null|string */ |
| 28 | 28 | private $filePath; |
| 29 | 29 | /* @var integer */ |
| 30 | - private $debug = 0;///TODO: determine levels |
|
| 30 | + private $debug = 0; ///TODO: determine levels |
|
| 31 | 31 | /* @var integer */ |
| 32 | 32 | private $options = 0; |
| 33 | 33 | //Exceptions messages |
@@ -112,8 +112,8 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | $emptyLines = []; |
| 114 | 114 | switch ($n->indent <=> $previous->indent) { |
| 115 | - case -1: $previous->getParent($n->indent)->add($n);break; |
|
| 116 | - case 0: $previous->getParent()->add($n);break; |
|
| 115 | + case -1: $previous->getParent($n->indent)->add($n); break; |
|
| 116 | + case 0: $previous->getParent()->add($n); break; |
|
| 117 | 117 | default: |
| 118 | 118 | if ($this->onDeepestType($n, $previous, $lineString)) continue 2; |
| 119 | 119 | $previous->add($n); |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | // // if ($previous->type & Y\ITEM && $n->type & Y\KEY) { |
| 177 | 177 | // // $previous |
| 178 | 178 | // // } |
| 179 | - if ($deepest->type & (Y\BLANK | Y\SCALAR)) {//|| ($previous->type & (Y\ITEM | Y\SET_KEY))) { |
|
| 179 | + if ($deepest->type & (Y\BLANK|Y\SCALAR)) {//|| ($previous->type & (Y\ITEM | Y\SET_KEY))) { |
|
| 180 | 180 | $previous = $deepest->getParent(); |
| 181 | 181 | // // if ($n->type === Y\SCALAR && ($deepest->getParent()->type & Y\LITTERALS)) { |
| 182 | 182 | // // // $deepest->type = Y\SCALAR; |