src/Configuration/ConfigurationDumper.php 1 location
|
@@ 19-21 (lines=3) @@
|
| 16 |
|
public function dumpConfiguration(array $config) |
| 17 |
|
{ |
| 18 |
|
$content = ''; |
| 19 |
|
foreach ($config as $name => $section) { |
| 20 |
|
$content .= Yaml::dump([$name => $section], 4).PHP_EOL; |
| 21 |
|
} |
| 22 |
|
|
| 23 |
|
return $content; |
| 24 |
|
} |
tests/Handler/InitHandlerTest.php 1 location
|
@@ 53-55 (lines=3) @@
|
| 50 |
|
]; |
| 51 |
|
|
| 52 |
|
$content = ''; |
| 53 |
|
foreach ($configuration as $name => $section) { |
| 54 |
|
$content .= Yaml::dump([$name => $section], 4).PHP_EOL; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
file_put_contents($this->file, $content); |
| 58 |
|
|