Code Duplication    Length = 5-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 1243-1248 (lines=6) @@
1240
            }
1241
            $file = $dir->getRealPath().'/config.yml';
1242
            $config = null;
1243
            if (file_exists($file)) {
1244
                $config = Yaml::parse(file_get_contents($file));
1245
            } else {
1246
                $this['monolog']->warning("skip {$code} orm.path loading. config.yml not found.", array('path' => $file));
1247
                continue;
1248
            }
1249
1250
            $file = $dir->getRealPath().'/event.yml';
1251
            $event = null;
@@ 1252-1256 (lines=5) @@
1249
1250
            $file = $dir->getRealPath().'/event.yml';
1251
            $event = null;
1252
            if (file_exists($file)) {
1253
                $event = Yaml::parse(file_get_contents($file));
1254
            } else {
1255
                $this['monolog']->info("skip {$code} event.yml not found.", array('path' => $file));
1256
            }
1257
            if (!is_null($config)) {
1258
                $pluginConfigs[$code] = array(
1259
                    'config' => $config,