Code Duplication    Length = 12-14 lines in 2 locations

src/Eccube/Controller/Install/InstallController.php 2 locations

@@ 311-324 (lines=14) @@
308
        return $this;
309
    }
310
311
    private function dropTables()
312
    {
313
        $this->resetNatTimer();
314
315
        $em = $this->getEntityManager();
316
        $metadatas = $em->getMetadataFactory()->getAllMetadata();
317
        $schemaTool = new SchemaTool($em);
318
319
        $schemaTool->dropSchema($metadatas);
320
321
        $em->getConnection()->executeQuery('DROP TABLE IF EXISTS doctrine_migration_versions');
322
323
        return $this;
324
    }
325
326
    /**
327
     * @return EntityManager
@@ 358-369 (lines=12) @@
355
        return $em = $this->app['orm.em'];
356
    }
357
358
    private function createTables()
359
    {
360
        $this->resetNatTimer();
361
362
        $em = $this->getEntityManager();
363
        $metadatas = $em->getMetadataFactory()->getAllMetadata();
364
        $schemaTool = new SchemaTool($em);
365
366
        $schemaTool->createSchema($metadatas);
367
368
        return $this;
369
    }
370
371
    private function insert()
372
    {