@@ -87,8 +87,8 @@ |
||
87 | 87 | private function dumpYamlObject(YamlObject $obj):string |
88 | 88 | { |
89 | 89 | if ($this->multipleDocs || $obj->hasDocStart() || $obj->isTagged() || $obj->isScalar()) { |
90 | - $this->multipleDocs = true; |
|
91 | - // && $this->$result instanceof DLL) $this->$result->push("---"); |
|
90 | + $this->multipleDocs = true; |
|
91 | + // && $this->$result instanceof DLL) $this->$result->push("---"); |
|
92 | 92 | } |
93 | 93 | if (count($obj) > 0) { |
94 | 94 | return $this->iteratorToString($obj, '-', 0); |
@@ -10,17 +10,17 @@ |
||
10 | 10 | */ |
11 | 11 | class Comment extends NodeGeneric |
12 | 12 | { |
13 | - public function specialProcess(NodeGeneric &$previous, array &$emptyLines):bool |
|
14 | - { |
|
13 | + public function specialProcess(NodeGeneric &$previous, array &$emptyLines):bool |
|
14 | + { |
|
15 | 15 | $previous->getRoot()->add($this); |
16 | 16 | return true; |
17 | - } |
|
17 | + } |
|
18 | 18 | |
19 | - public function build(&$parent = null) |
|
20 | - { |
|
19 | + public function build(&$parent = null) |
|
20 | + { |
|
21 | 21 | $root = $this->getRoot(); |
22 | 22 | $yamlObject = $root->getYamlObject(); |
23 | 23 | $yamlObject->addComment($this->line, $this->raw); |
24 | 24 | return null; |
25 | - } |
|
25 | + } |
|
26 | 26 | } |
27 | 27 | \ No newline at end of file |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | return false; |
154 | 154 | } |
155 | 155 | |
156 | - /** |
|
156 | + /** |
|
157 | 157 | * Find parent target when current Node indentation is lesser than previous node indentation |
158 | 158 | * |
159 | 159 | * @param NodeGeneric $node |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | return $this->getParent(); |
190 | 190 | } |
191 | 191 | |
192 | - /** |
|
192 | + /** |
|
193 | 193 | * Find parent target when current Node indentation is superior than previous node indentation |
194 | 194 | * |
195 | 195 | * @param NodeGeneric $node |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $result = ''; |
18 | 18 | $list = $list->filterComment(); |
19 | 19 | if ($this->identifier !== '+') { |
20 | - self::litteralStripTrailing($list); |
|
20 | + self::litteralStripTrailing($list); |
|
21 | 21 | } |
22 | 22 | if ($list->count()) { |
23 | 23 | $list->setIteratorMode(NodeList::IT_MODE_DELETE); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | public function setIdentifier(string $keyString) |
36 | 36 | { |
37 | 37 | if ($keyString === '') { |
38 | - throw new \ParseError(sprintf(self::ERROR_NO_KEYNAME, $this->line)); |
|
38 | + throw new \ParseError(sprintf(self::ERROR_NO_KEYNAME, $this->line)); |
|
39 | 39 | } else { |
40 | 40 | $keyNode = NodeFactory::get($keyString); |
41 | 41 | if ($keyNode instanceof Tag || $keyNode instanceof Quoted) { |
@@ -21,12 +21,12 @@ |
||
21 | 21 | class LocalNamespace implements NamespaceInterface |
22 | 22 | { |
23 | 23 | public const LEGACY_TAGS_HANDLERS = ['!!str' => 'strHandler', |
24 | - '!!binary' => 'binaryHandler', |
|
25 | - '!set' => 'setHandler', |
|
26 | - '!!omap' => 'omapHandler', |
|
27 | - '!php/object' => 'symfonyPHPobjectHandler', |
|
28 | - '!inline' => 'inlineHandler', |
|
29 | - ]; |
|
24 | + '!!binary' => 'binaryHandler', |
|
25 | + '!set' => 'setHandler', |
|
26 | + '!!omap' => 'omapHandler', |
|
27 | + '!php/object' => 'symfonyPHPobjectHandler', |
|
28 | + '!inline' => 'inlineHandler', |
|
29 | + ]; |
|
30 | 30 | |
31 | 31 | |
32 | 32 | /** |