Code Duplication    Length = 5-6 lines in 2 locations

src/Eccube/Application.php 2 locations

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