@@ -62,7 +62,6 @@ discard block |
||
| 62 | 62 | %TAG !! tag:example.com,2000:app/ |
| 63 | 63 | %TAG !e! tag:example.com,2000:app/ |
| 64 | 64 | !<tag:yaml.org,2002:str> foo : |
| 65 | - |
|
| 66 | 65 | */ |
| 67 | 66 | /** |
| 68 | 67 | * Add Handlers for legacy Yaml tags |
@@ -107,16 +106,16 @@ discard block |
||
| 107 | 106 | self::createCoreSchema(); |
| 108 | 107 | } |
| 109 | 108 | if (!($value instanceof NodeGeneric) && !($value instanceof NodeList) ) { |
| 110 | - throw new \Exception(sprintf(self::WRONG_VALUE, $identifier, gettype($value))); |
|
| 109 | + throw new \Exception(sprintf(self::WRONG_VALUE, $identifier, gettype($value))); |
|
| 111 | 110 | } else { |
| 112 | 111 | // try { |
| 113 | 112 | if (!preg_match(Regex::TAG_PARTS, $identifier, $matches)) { |
| 114 | 113 | throw new \UnexpectedValueException("Tag '$identifier' is invalid", 1); |
| 115 | 114 | } |
| 116 | 115 | return self::runHandler($matches['handle'], |
| 117 | - $matches['tagname'], |
|
| 118 | - $value, |
|
| 119 | - $parent); |
|
| 116 | + $matches['tagname'], |
|
| 117 | + $value, |
|
| 118 | + $parent); |
|
| 120 | 119 | // } catch (\UnexpectedValueException $e) { |
| 121 | 120 | // return new Tagged($identifier, is_null($value) ? null : $value->build($parent)); |
| 122 | 121 | // } catch (\Throwable $e) { |