@@ -74,7 +74,7 @@ |
||
74 | 74 | switch (gettype($dataType)) { |
75 | 75 | case 'boolean': return $dataType ? 'true' : 'false'; |
76 | 76 | case 'float': if (is_infinite($dataType)) return $dataType > 0 ? '.inf' : '-.inf'; |
77 | - return sprintf('%.2F', $dataType); |
|
77 | + return sprintf('%.2F', $dataType); |
|
78 | 78 | case 'double': if (is_nan((float) $dataType)) return '.nan'; |
79 | 79 | default: |
80 | 80 | return $dataType; |
@@ -162,11 +162,11 @@ |
||
162 | 162 | } |
163 | 163 | if ($type & Y::COMMENT) self::$_root->addComment($node->line, $node->value); |
164 | 164 | $typesActions = [Y::DIRECTIVE => 'buildDirective', |
165 | - Y::ITEM => 'buildItem', |
|
166 | - Y::KEY => 'buildKey', |
|
167 | - Y::SET_KEY => 'buildSetKey', |
|
168 | - Y::SET_VALUE => 'buildSetValue', |
|
169 | - Y::TAG => 'buildTag', |
|
165 | + Y::ITEM => 'buildItem', |
|
166 | + Y::KEY => 'buildKey', |
|
167 | + Y::SET_KEY => 'buildSetKey', |
|
168 | + Y::SET_VALUE => 'buildSetValue', |
|
169 | + Y::TAG => 'buildTag', |
|
170 | 170 | ]; |
171 | 171 | if (isset($typesActions[$type])) { |
172 | 172 | return self::{$typesActions[$type]}($node, $parent); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | if ($n->type & (Y::REF_CALL|Y::SCALAR)) return self::getScalar((string) $n->value); |
28 | 28 | if ($n->type & Y::JSON) return $n->value; |
29 | 29 | $expected = [Y::QUOTED => trim((string) $n->value, "\"'"), |
30 | - Y::RAW => strval((string) $n->value)]; |
|
30 | + Y::RAW => strval((string) $n->value)]; |
|
31 | 31 | return $expected[$n->type] ?? null; |
32 | 32 | } |
33 | 33 |