Code Duplication    Length = 3-3 lines in 2 locations

src/lib/bootstrap.php 1 location

@@ 20-22 (lines=3) @@
17
require __DIR__.'/../lib/requirementCheck.php';
18
19
$kernelConfig = Yaml::parse(file_get_contents(__DIR__.'/../app/config/parameters.yml'));
20
if (is_readable($file = __DIR__.'/../app/config/custom_parameters.yml')) {
21
    $kernelConfig = array_merge($kernelConfig, Yaml::parse(file_get_contents($file)));
22
}
23
$kernelConfig = $kernelConfig['parameters'];
24
if ($kernelConfig['debug'] == true) {
25
    Debug::enable();

src/lib/Zikula/Bundle/CoreBundle/HttpKernel/ZikulaKernel.php 1 location

@@ 263-265 (lines=3) @@
260
    public function getConnectionConfig()
261
    {
262
        $config = Yaml::parse(file_get_contents($this->rootDir . '/config/parameters.yml'));
263
        if (is_readable($file = $this->rootDir . '/config/custom_parameters.yml')) {
264
            $config = array_merge($config, Yaml::parse(file_get_contents($file)));
265
        }
266
267
        return $config;
268
    }