Code Duplication    Length = 5-6 lines in 2 locations

src/Eccube/Application.php 2 locations

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