Code Duplication    Length = 11-11 lines in 2 locations

src/Eccube/Command/PluginCommand/EntityFromDbGenerator.php 1 location

@@ 63-73 (lines=11) @@
60
        $codePath = $this->app['config']['root_dir'] . '/app/Plugin/' . $pluginCode;
61
62
        $dirList = array('Entity', 'Repository', 'Resource', 'Resource/doctrine', '/Resource/doctrine/migration');
63
        foreach ($dirList as $dirName) {
64
            $dirPath = $codePath . '/' . $dirName;
65
            if (!is_dir($dirPath)) {
66
                mkdir($dirPath);
67
            }
68
            if (is_dir($dirPath)) {
69
                $fsList['dir'][$dirPath] = true;
70
            } else {
71
                $fsList['dir'][$dirPath] = false;
72
            }
73
        }
74
        $entityInfoList = array();
75
        $SchemaManager = $this->app['orm.em']->getConnection()->getSchemaManager();
76
        $migration = array();

src/Eccube/Command/PluginCommand/EntityFromYamlGenerator.php 1 location

@@ 68-78 (lines=11) @@
65
        $codePath = $this->app['config']['root_dir'] . '/app/Plugin/' . $pluginCode;
66
67
        $dirList = array('Entity', 'Repository', '/Resource/doctrine/migration');
68
        foreach ($dirList as $dirName) {
69
            $dirPath = $codePath . '/' . $dirName;
70
            if (!is_dir($dirPath)) {
71
                mkdir($dirPath);
72
            }
73
            if (is_dir($dirPath)) {
74
                $fsList['dir'][$dirPath] = true;
75
            } else {
76
                $fsList['dir'][$dirPath] = false;
77
            }
78
        }
79
        $metadetas = array();
80
81