Code Duplication    Length = 5-6 lines in 2 locations

src/Eccube/Application.php 2 locations

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