Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 395-397 (lines=3) @@
392
                // Doctrine Extend
393
                if (isset($config['orm.path']) && is_array($config['orm.path'])) {
394
                    $paths = array();
395
                    foreach ($config['orm.path'] as $path) {
396
                        $paths[] = __DIR__.'/../../../../app/Plugin/'.$config['code'].$path;
397
                    }
398
                    $ormMappings[] = array(
399
                        'type' => 'annotation',
400
                        'namespace' => 'Plugin\\'.$config['code'].'\\Entity',

src/Eccube/Application.php 1 location

@@ 643-645 (lines=3) @@
640
            // Doctrine Extend
641
            if (isset($config['orm.path']) && is_array($config['orm.path'])) {
642
                $paths = array();
643
                foreach ($config['orm.path'] as $path) {
644
                    $paths[] = $this['config']['plugin_realdir'].'/'.$config['code'].$path;
645
                }
646
                $ormMappings[] = array(
647
                    'type' => 'yml',
648
                    'namespace' => 'Plugin\\'.$config['code'].'\\Entity',