| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Envs extends ConfigOutput |
||
| 13 | { |
||
| 14 | 2 | protected function writeFile(string $path, array $data): void |
|
| 15 | { |
||
| 16 | 2 | $envs = Helper::exportVar($data); |
|
| 17 | |||
| 18 | $content = <<<PHP |
||
| 19 | 2 | <?php |
|
| 20 | 2 | return {$envs}; |
|
| 21 | PHP; |
||
| 22 | |||
| 23 | 2 | $this->contentWriter->write($path, $content . PHP_EOL); |
|
| 24 | 2 | } |
|
| 25 | |||
| 26 | protected function envsRequired(): bool |
||
| 27 | { |
||
| 28 | return false; |
||
| 29 | } |
||
| 30 | |||
| 31 | protected function constantsRequired(): bool |
||
| 34 | } |
||
| 35 | |||
| 36 | protected function paramsRequired(): bool |
||
| 39 | } |
||
| 40 | } |
||
| 41 |