| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 14 | public function parse(string $schemaContent): \stdClass |
||
| 15 | { |
||
| 16 | try { |
||
| 17 | // @codingStandardsIgnoreStart |
||
| 18 | return Yaml::parse( |
||
| 19 | $schemaContent, |
||
| 20 | Yaml::PARSE_OBJECT | Yaml::PARSE_OBJECT_FOR_MAP | Yaml::PARSE_DATETIME | Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE |
||
| 21 | ); |
||
| 22 | // @codingStandardsIgnoreEnd |
||
| 23 | } catch (SymfonyParseException $parseException) { |
||
| 24 | throw new ParseException($parseException->getMessage()); |
||
| 25 | } |
||
| 26 | } |
||
| 27 | } |
||
| 28 |