Code Duplication    Length = 12-14 lines in 2 locations

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

@@ 397-410 (lines=14) @@
394
        return $this;
395
    }
396
397
    private function dropTables()
398
    {
399
        $this->resetNatTimer();
400
401
        $em = $this->getEntityManager();
402
        $metadatas = $em->getMetadataFactory()->getAllMetadata();
403
        $schemaTool = new SchemaTool($em);
404
405
        $schemaTool->dropSchema($metadatas);
406
407
        $em->getConnection()->executeQuery('DROP TABLE IF EXISTS doctrine_migration_versions');
408
409
        return $this;
410
    }
411
412
    /**
413
     * @return EntityManager
@@ 444-455 (lines=12) @@
441
        return $em = $this->app['orm.em'];
442
    }
443
444
    private function createTables()
445
    {
446
        $this->resetNatTimer();
447
448
        $em = $this->getEntityManager();
449
        $metadatas = $em->getMetadataFactory()->getAllMetadata();
450
        $schemaTool = new SchemaTool($em);
451
452
        $schemaTool->createSchema($metadatas);
453
454
        return $this;
455
    }
456
457
    private function insert()
458
    {