| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | public static function path($name, $vendor) |
||
| 19 | { |
||
| 20 | /// doesn't work when dependencies are not installed |
||
| 21 | /// return \hiqdev\composer\config\Builder::path($name, $vendor); |
||
| 22 | |||
| 23 | $yiiPath = "$vendor/yiisoft/composer-config-plugin-output/$name.php"; |
||
| 24 | $hiqPath = "$vendor/hiqdev/composer-config-plugin-output/$name.php"; |
||
| 25 | |||
| 26 | return file_exists($yiiPath) ? $yiiPath : $hiqPath; |
||
| 27 | } |
||
| 29 |