Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function load(string $file): array |
||
35 | { |
||
36 | // So yaml syntax could work properly |
||
37 | $contents = \str_replace( |
||
38 | ['~', '\'false\'', '\'true\'', '"false"', '"true"'], |
||
39 | ['null', 'false', 'true', 'false', 'true'], |
||
40 | FileSystem::read($file) |
||
41 | ); |
||
42 | |||
43 | return (new NeonAdapter())->process((array) Neon\Neon::decode($contents)); |
||
44 | } |
||
54 |