src/Configuration/ConfigurationDumper.php 1 location
|
@@ 32-34 (lines=3) @@
|
| 29 |
|
public function dumpConfiguration(array $config) |
| 30 |
|
{ |
| 31 |
|
$content = ''; |
| 32 |
|
foreach ($config as $name => $section) { |
| 33 |
|
$content .= Yaml::dump([$name => $section], 4).PHP_EOL; |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
return $content; |
| 37 |
|
} |
tests/Handler/InitHandlerTest.php 1 location
|
@@ 68-70 (lines=3) @@
|
| 65 |
|
]; |
| 66 |
|
|
| 67 |
|
$content = ''; |
| 68 |
|
foreach ($configuration as $name => $section) { |
| 69 |
|
$content .= Yaml::dump([$name => $section], 4).PHP_EOL; |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
file_put_contents($file, $content); |
| 73 |
|
|