@@ -38,7 +38,7 @@ |
||
| 38 | 38 | if (is_null($this->value)) { |
| 39 | 39 | return null; |
| 40 | 40 | } else { |
| 41 | - if ($this->value instanceof NodeTag){ |
|
| 41 | + if ($this->value instanceof NodeTag) { |
|
| 42 | 42 | $parent->addTag($this->value->tag); |
| 43 | 43 | $this->value->build($parent); |
| 44 | 44 | } else { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | if ($value instanceof NodeKey && $child instanceof NodeKey) { |
| 29 | 29 | if ($value->indent === $child->indent) { |
| 30 | 30 | return parent::add($child); |
| 31 | - } elseif ($value->isAwaitingChild($child)){ |
|
| 31 | + } elseif ($value->isAwaitingChild($child)) { |
|
| 32 | 32 | return $value->add($child); |
| 33 | 33 | } else { |
| 34 | 34 | // throw new \ParseError('key ('.$value->identifier.')@'.$value->line.' has already a value', 1); |
@@ -31,14 +31,14 @@ |
||
| 31 | 31 | $result = $this->getChildValue($first, $indent); |
| 32 | 32 | foreach ($list as $child) { |
| 33 | 33 | $separator = ($result && $result[-1] === "\n") ? '' : $refSeparator; |
| 34 | - if($child->indent > $indent || $child instanceof NodeBlank) { |
|
| 34 | + if ($child->indent > $indent || $child instanceof NodeBlank) { |
|
| 35 | 35 | $separator = "\n"; |
| 36 | 36 | } |
| 37 | 37 | $val = $this->getChildValue($child, $indent); |
| 38 | 38 | if ($child->value instanceof NodeList) { |
| 39 | 39 | $val = "\n".$this->getFinalString($child->value, $indent); |
| 40 | 40 | } |
| 41 | - $result .= $separator .$val; |
|
| 41 | + $result .= $separator.$val; |
|
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | return $result; |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function getParent(int $indent = null):Node |
| 67 | 67 | { |
| 68 | - if (!is_int($indent)){ |
|
| 68 | + if (!is_int($indent)) { |
|
| 69 | 69 | if ($this->_parent instanceof Node) { |
| 70 | 70 | return $this->_parent; |
| 71 | 71 | } else { |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | if ($this->tag) $props['tag'] = "($this->tag)"; |
| 216 | 216 | if ($this->value) $props['value'] = $this->value; |
| 217 | 217 | // $props['value'] = $this->value; |
| 218 | - $props['raw'] = $this->raw; |
|
| 218 | + $props['raw'] = $this->raw; |
|
| 219 | 219 | if (!$this->_parent) $props['parent'] = 'NO PARENT!!!'; |
| 220 | 220 | return $props; |
| 221 | 221 | } |