Code Duplication    Length = 12-14 lines in 2 locations

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

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