Conditions | 6 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | protected static function resolveYaml(string $basepath):?string |
||
29 | { |
||
30 | if (file_exists($conf = $basepath.'.yml') || file_exists($conf = $basepath.'.yaml')) { |
||
31 | if (function_exists('yaml_parse') || class_exists('Spyc') || class_exists('Symfony\Component\Yaml\Yaml')) { |
||
32 | return $conf; |
||
33 | } |
||
34 | } |
||
35 | return null; |
||
36 | } |
||
49 |