Code Duplication    Length = 12-14 lines in 2 locations

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

@@ 418-431 (lines=14) @@
415
        return $this;
416
    }
417
418
    private function dropTables()
419
    {
420
        $this->resetNatTimer();
421
422
        $em = $this->getEntityManager();
423
        $metadatas = $em->getMetadataFactory()->getAllMetadata();
424
        $schemaTool = new SchemaTool($em);
425
426
        $schemaTool->dropSchema($metadatas);
427
428
        $em->getConnection()->executeQuery('DROP TABLE IF EXISTS doctrine_migration_versions');
429
430
        return $this;
431
    }
432
433
    /**
434
     * @return EntityManager
@@ 495-506 (lines=12) @@
492
        return $em = $this->app['orm.em'];
493
    }
494
495
    private function createTables()
496
    {
497
        $this->resetNatTimer();
498
499
        $em = $this->getEntityManager();
500
        $metadatas = $em->getMetadataFactory()->getAllMetadata();
501
        $schemaTool = new SchemaTool($em);
502
503
        $schemaTool->createSchema($metadatas);
504
505
        return $this;
506
    }
507
508
    private function importCsv() {
509