Code Duplication    Length = 5-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 1252-1257 (lines=6) @@
1249
            }
1250
            $file = $dir->getRealPath().'/config.yml';
1251
            $config = null;
1252
            if (file_exists($file)) {
1253
                $config = Yaml::parse(file_get_contents($file));
1254
            } else {
1255
                $this['monolog']->warning("skip {$code} orm.path loading. config.yml not found.", array('path' => $file));
1256
                continue;
1257
            }
1258
1259
            $file = $dir->getRealPath().'/event.yml';
1260
            $event = null;
@@ 1261-1265 (lines=5) @@
1258
1259
            $file = $dir->getRealPath().'/event.yml';
1260
            $event = null;
1261
            if (file_exists($file)) {
1262
                $event = Yaml::parse(file_get_contents($file));
1263
            } else {
1264
                $this['monolog']->info("skip {$code} event.yml not found.", array('path' => $file));
1265
            }
1266
            if (!is_null($config)) {
1267
                $pluginConfigs[$code] = array(
1268
                    'config' => $config,