@@ -2,15 +2,15 @@ |
||
| 2 | 2 | namespace Dallgoot\Yaml; |
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | - * The returned object representing a YAML file content |
|
| 6 | - * |
|
| 7 | - * @method void addReference(string $name, $value) |
|
| 8 | - * @method mixed getReference(string $name) |
|
| 9 | - * @method array getAllReferences() |
|
| 10 | - * @method void addComment($index, $value) |
|
| 11 | - * @method string|array getComment($lineNumber) |
|
| 12 | - * @method void setText(string $value) |
|
| 13 | - * @method void addTag(string $value) |
|
| 5 | + * The returned object representing a YAML file content |
|
| 6 | + * |
|
| 7 | + * @method void addReference(string $name, $value) |
|
| 8 | + * @method mixed getReference(string $name) |
|
| 9 | + * @method array getAllReferences() |
|
| 10 | + * @method void addComment($index, $value) |
|
| 11 | + * @method string|array getComment($lineNumber) |
|
| 12 | + * @method void setText(string $value) |
|
| 13 | + * @method void addTag(string $value) |
|
| 14 | 14 | */ |
| 15 | 15 | class YamlObject extends \ArrayIterator implements \JsonSerializable |
| 16 | 16 | { |
@@ -288,13 +288,13 @@ |
||
| 288 | 288 | private static function getScalar(string $v) |
| 289 | 289 | { |
| 290 | 290 | $types = ['yes' => true, |
| 291 | - 'no' => false, |
|
| 292 | - 'true' => true, |
|
| 293 | - 'false' => false, |
|
| 294 | - 'null' => null, |
|
| 295 | - '.inf' => INF, |
|
| 296 | - '-.inf' => -INF, |
|
| 297 | - '.nan' => NAN |
|
| 291 | + 'no' => false, |
|
| 292 | + 'true' => true, |
|
| 293 | + 'false' => false, |
|
| 294 | + 'null' => null, |
|
| 295 | + '.inf' => INF, |
|
| 296 | + '-.inf' => -INF, |
|
| 297 | + '.nan' => NAN |
|
| 298 | 298 | ]; |
| 299 | 299 | if (isset($types[strtolower($v)])) return $types[strtolower($v)]; |
| 300 | 300 | if (R::isDate($v)) return date_create($v); |