Code Duplication    Length = 5-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 1206-1211 (lines=6) @@
1203
            $code = $dir->getBaseName();
1204
            $file = $dir->getRealPath().'/config.yml';
1205
            $config = null;
1206
            if (file_exists($file)) {
1207
                $config = Yaml::parse(file_get_contents($file));
1208
            } else {
1209
                $this['monolog']->warning("skip {$code} orm.path loading. config.yml not found.", array('path' => $file));
1210
                continue;
1211
            }
1212
1213
            $file = $dir->getRealPath().'/event.yml';
1214
            $event = null;
@@ 1215-1219 (lines=5) @@
1212
1213
            $file = $dir->getRealPath().'/event.yml';
1214
            $event = null;
1215
            if (file_exists($file)) {
1216
                $event = Yaml::parse(file_get_contents($file));
1217
            } else {
1218
                $this['monolog']->info("skip {$code} event.yml not found.", array('path' => $file));
1219
            }
1220
            if (!is_null($config)) {
1221
                $pluginConfigs[$code] = array(
1222
                    'config' => $config,