Code Duplication    Length = 5-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 1315-1320 (lines=6) @@
1312
            }
1313
            $file = $dir->getRealPath().'/config.yml';
1314
            $config = null;
1315
            if (file_exists($file)) {
1316
                $config = Yaml::parse(file_get_contents($file));
1317
            } else {
1318
                $this['monolog']->warning("skip {$code} orm.path loading. config.yml not found.", array('path' => $file));
1319
                continue;
1320
            }
1321
1322
            $file = $dir->getRealPath().'/event.yml';
1323
            $event = null;
@@ 1324-1328 (lines=5) @@
1321
1322
            $file = $dir->getRealPath().'/event.yml';
1323
            $event = null;
1324
            if (file_exists($file)) {
1325
                $event = Yaml::parse(file_get_contents($file));
1326
            } else {
1327
                $this['monolog']->info("skip {$code} event.yml not found.", array('path' => $file));
1328
            }
1329
            if (!is_null($config)) {
1330
                $pluginConfigs[$code] = array(
1331
                    'config' => $config,