Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public function validate(): ConfigurationValidatorInterface |
||
43 | { |
||
44 | $configurationFileContent = $this->configurationLoader->loadRaw(); |
||
45 | |||
46 | try { |
||
47 | $this->jsonSchema->in(json_decode($configurationFileContent)); |
||
48 | } catch (InvalidValue $e) { |
||
49 | throw new ConfigurationNotValidException($e->getMessage()); |
||
50 | } |
||
51 | |||
52 | return $this; |
||
53 | } |
||
55 |