@@ -125,8 +125,12 @@ |
||
| 125 | 125 | try { |
| 126 | 126 | foreach ($generator as $lineNb => $lineString) { |
| 127 | 127 | $node = NodeFactory::get($lineString, $lineNb); |
| 128 | - if ($this->_debug === 1) echo get_class($node)."\n"; |
|
| 129 | - if ($this->needsSpecialProcess($node, $previous)) continue; |
|
| 128 | + if ($this->_debug === 1) { |
|
| 129 | + echo get_class($node)."\n"; |
|
| 130 | + } |
|
| 131 | + if ($this->needsSpecialProcess($node, $previous)) { |
|
| 132 | + continue; |
|
| 133 | + } |
|
| 130 | 134 | $this->attachBlankLines($previous); |
| 131 | 135 | switch ($node->indent <=> $previous->indent) { |
| 132 | 136 | case -1: $target = $previous->getTargetOnLessIndent($node); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function setIdentifier(string $keyString) |
| 34 | 34 | { |
| 35 | 35 | if ($keyString === '') { |
| 36 | - throw new \ParseError(sprintf(self::ERROR_NO_KEYNAME, $this->line)); |
|
| 36 | + throw new \ParseError(sprintf(self::ERROR_NO_KEYNAME, $this->line)); |
|
| 37 | 37 | } else { |
| 38 | 38 | $keyNode = NodeFactory::get($keyString); |
| 39 | 39 | if ($keyNode instanceof NodeTag || $keyNode instanceof NodeQuoted) { |