Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
10 | 3 | public function generate() : string |
|
11 | { |
||
12 | 3 | $lines = []; |
|
13 | |||
14 | 3 | foreach ($this->keys as $key => $match) { |
|
15 | 3 | $lines[] = sprintf("\t\"%s\" => \"%s\"", $match, $this->values[$key]); |
|
16 | 3 | } |
|
17 | |||
18 | 3 | $output = 'setenv.add-environment = (' . PHP_EOL; |
|
19 | 3 | $output .= implode(',' . PHP_EOL, $lines); |
|
20 | 3 | $output .= PHP_EOL . ')'; |
|
21 | |||
22 | 3 | return $output; |
|
23 | } |
||
24 | } |
||
25 |