@@ -37,7 +37,7 @@ |
||
37 | 37 | $matchSpaced = preg_match($spaced, $v); |
38 | 38 | $matchIso = preg_match($iso8601, $v); |
39 | 39 | if (is_bool($matchDate) || is_bool($matchCanonical) || is_bool($matchSpaced) || is_bool($matchIso)) { |
40 | - throw new \Exception("Regex date error"); |
|
40 | + throw new \Exception("Regex date error"); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | return $matchDate || $matchCanonical || $matchSpaced || $matchIso; |
@@ -261,8 +261,8 @@ |
||
261 | 261 | if ($this->type & (Y::REF_CALL | Y::SCALAR)) return self::getScalar($v); |
262 | 262 | if ($this->type & (Y::COMPACT_MAPPING | Y::COMPACT_SEQUENCE)) return self::getCompact(substr($v, 1, -1), $this->type); |
263 | 263 | $expected = [Y::JSON => json_decode($v, false, 512, JSON_PARTIAL_OUTPUT_ON_ERROR), |
264 | - Y::QUOTED => substr($v, 1, -1), |
|
265 | - Y::RAW => strval($v)]; |
|
264 | + Y::QUOTED => substr($v, 1, -1), |
|
265 | + Y::RAW => strval($v)]; |
|
266 | 266 | if (isset($expected[$this->type])) { |
267 | 267 | return $expected[$this->type]; |
268 | 268 | } |
@@ -65,12 +65,12 @@ |
||
65 | 65 | return self::$_root->getReference($identifier); |
66 | 66 | } |
67 | 67 | $typesActions = [Y::COMMENT => 'buildComment', |
68 | - Y::DIRECTIVE => 'buildDirective', |
|
69 | - Y::ITEM => 'buildItem', |
|
70 | - Y::KEY => 'buildKey', |
|
71 | - Y::SET_KEY => 'buildSetKey', |
|
72 | - Y::SET_VALUE => 'buildSetValue', |
|
73 | - Y::TAG => 'buildTag', |
|
68 | + Y::DIRECTIVE => 'buildDirective', |
|
69 | + Y::ITEM => 'buildItem', |
|
70 | + Y::KEY => 'buildKey', |
|
71 | + Y::SET_KEY => 'buildSetKey', |
|
72 | + Y::SET_VALUE => 'buildSetValue', |
|
73 | + Y::TAG => 'buildTag', |
|
74 | 74 | ]; |
75 | 75 | if (isset($typesActions[$type])) { |
76 | 76 | return self::{$typesActions[$type]}($node, $parent); |