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