Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Controller/Install/InstallController.php 1 location

@@ 475-477 (lines=3) @@
472
                // Doctrine Extend
473
                if (isset($config['orm.path']) && is_array($config['orm.path'])) {
474
                    $paths = array();
475
                    foreach ($config['orm.path'] as $path) {
476
                        $paths[] = __DIR__.'/../../../../app/Plugin/'.$config['code'].$path;
477
                    }
478
                    $ormMappings[] = array(
479
                        'type' => 'annotation',
480
                        'namespace' => 'Plugin\\'.$config['code'].'\\Entity',

src/Eccube/Application.php 1 location

@@ 599-601 (lines=3) @@
596
            // Doctrine Extend
597
            if (isset($config['orm.path']) && is_array($config['orm.path'])) {
598
                $paths = array();
599
                foreach ($config['orm.path'] as $path) {
600
                    $paths[] = $this['config']['plugin_realdir'].'/'.$config['code'].$path;
601
                }
602
                $ormMappings[] = array(
603
                    'type' => 'yml',
604
                    'namespace' => 'Plugin\\'.$config['code'].'\\Entity',