| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 3 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 23 | 7 | protected function parseString(string $input) |
|
| 24 | { |
||
| 25 | try { |
||
| 26 | 7 | return Symfony\Yaml::parse($input, (int)$this->getOption('flags', 0)); |
|
| 27 | 2 | } catch (Symfony\Exception\ParseException $e) { |
|
| 28 | 2 | if ($this->logger instanceof LoggerInterface) { |
|
| 29 | 2 | $this->logger->error($e->getMessage()); |
|
| 30 | } |
||
| 31 | 2 | return null; |
|
| 32 | } |
||
| 36 |