Code Duplication    Length = 5-6 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 1217-1222 (lines=6) @@
1214
            $code = $dir->getBaseName();
1215
            $file = $dir->getRealPath().'/config.yml';
1216
            $config = null;
1217
            if (file_exists($file)) {
1218
                $config = Yaml::parse(file_get_contents($file));
1219
            } else {
1220
                $this['monolog']->warning("skip {$code} orm.path loading. config.yml not found.", array('path' => $file));
1221
                continue;
1222
            }
1223
1224
            $file = $dir->getRealPath().'/event.yml';
1225
            $event = null;
@@ 1226-1230 (lines=5) @@
1223
1224
            $file = $dir->getRealPath().'/event.yml';
1225
            $event = null;
1226
            if (file_exists($file)) {
1227
                $event = Yaml::parse(file_get_contents($file));
1228
            } else {
1229
                $this['monolog']->info("skip {$code} event.yml not found.", array('path' => $file));
1230
            }
1231
            if (!is_null($config)) {
1232
                $pluginConfigs[$code] = array(
1233
                    'config' => $config,