Conditions | 4 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
27 | protected function pushEnvVars($vars) |
||
28 | { |
||
29 | $env = $this->builder->getConfig('dotenv')->getValues(); |
||
30 | if (!empty($vars)) { |
||
31 | foreach (array_keys($vars) as $key) { |
||
32 | $envKey = strtoupper(strtr($key, '.', '_')); |
||
33 | if (isset($env[$envKey])) { |
||
34 | $vars[$key] = $env[$envKey]; |
||
35 | } |
||
36 | } |
||
37 | } |
||
38 | |||
39 | return $vars; |
||
40 | } |
||
42 |