Code Duplication    Length = 12-14 lines in 2 locations

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

@@ 500-513 (lines=14) @@
497
        return $this;
498
    }
499
500
    private function dropTables()
501
    {
502
        $this->resetNatTimer();
503
504
        $em = $this->getEntityManager();
505
        $metadatas = $em->getMetadataFactory()->getAllMetadata();
506
        $schemaTool = new SchemaTool($em);
507
508
        $schemaTool->dropSchema($metadatas);
509
510
        $em->getConnection()->executeQuery('DROP TABLE IF EXISTS doctrine_migration_versions');
511
512
        return $this;
513
    }
514
515
    /**
516
     * @return EntityManager
@@ 547-558 (lines=12) @@
544
        return $em = $this->app['orm.em'];
545
    }
546
547
    private function createTables()
548
    {
549
        $this->resetNatTimer();
550
551
        $em = $this->getEntityManager();
552
        $metadatas = $em->getMetadataFactory()->getAllMetadata();
553
        $schemaTool = new SchemaTool($em);
554
555
        $schemaTool->createSchema($metadatas);
556
557
        return $this;
558
    }
559
560
    private function insert()
561
    {