Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 43-45 (lines=3) @@
40
        ];
41
42
        $content = '';
43
        foreach ($configuration as $name => $section) {
44
            $content .= Yaml::dump([$name => $section], 4).PHP_EOL;
45
        }
46
47
        file_put_contents($file, $content);
48