Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 63.64% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ConfigLocator |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private static $possibleConfigFileNames = [ |
||
13 | '.deployee.{env}.yml', |
||
14 | '.deployee.yml', |
||
15 | 'deployee.{env}.yml', |
||
16 | 'deployee.yml', |
||
17 | '.deployee.{env}.dist.yml', |
||
18 | '.deployee.dist.yml', |
||
19 | 'deployee.{env}.dist.yml', |
||
20 | 'deployee.dist.yml', |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * @param array $searchableDirs |
||
25 | * @param string $env |
||
26 | * @return string |
||
27 | */ |
||
28 | 1 | public function locate(array $searchableDirs, string $env = ''): string |
|
47 | } |