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
|
@@ 41-43 (lines=3) @@
|
| 38 |
|
]; |
| 39 |
|
|
| 40 |
|
$content = ''; |
| 41 |
|
foreach ($configuration as $name => $section) { |
| 42 |
|
$content .= Yaml::dump([$name => $section], 4).PHP_EOL; |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
file_put_contents($this->file, $content); |
| 46 |
|
|