Code Duplication    Length = 15-16 lines in 2 locations

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

@@ 201-216 (lines=16) @@
198
        return $this->tableList;
199
    }
200
201
    private function getPluginList()
202
    {
203
        $ret = array();
204
        $pluginDir = $this->app['config']['root_dir'] . '/app/Plugin';
205
        $iterator = new \DirectoryIterator($pluginDir);
206
        foreach ($iterator as $fileInfo) {
207
            if ($fileInfo->isDot()) {
208
                continue;
209
            }
210
            if ($fileInfo->isDir()) {
211
                $ret[$fileInfo->getFilename()] = $fileInfo->getFilename();
212
            }
213
        }
214
        
215
        return $ret;
216
    }
217
218
    private function toCamelCase($name)
219
    {

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

@@ 222-236 (lines=15) @@
219
        return $this->entityList;
220
    }
221
222
    private function getPluginList()
223
    {
224
        $ret = array();
225
        $pluginDir = $this->app['config']['root_dir'] . '/app/Plugin';
226
        $iterator = new \DirectoryIterator($pluginDir);
227
        foreach ($iterator as $fileInfo) {
228
            if ($fileInfo->isDot()) {
229
                continue;
230
            }
231
            if ($fileInfo->isDir()) {
232
                $ret[$fileInfo->getFilename()] = $fileInfo->getFilename();
233
            }
234
        }
235
        return $ret;
236
    }
237
238
    private function toCamelCase($name)
239
    {