Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function findConfigFile($path) |
||
35 | { |
||
36 | $configFilePath = rtrim($path, '/') . '/' . PHPFormatter::CONFIG_FILE_NAME; |
||
37 | $config = []; |
||
38 | if (is_file($configFilePath)) { |
||
39 | $yamlParser = new YamlParser(); |
||
40 | $config = $yamlParser->parse(file_get_contents($configFilePath)); |
||
41 | } |
||
42 | |||
43 | return $config; |
||
44 | } |
||
45 | } |
||
46 |