Code Duplication    Length = 5-6 lines in 2 locations

src/Eccube/Application.php 2 locations

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