Code Duplication    Length = 9-9 lines in 2 locations

src/Phinx/Db/Adapter/OracleAdapter.php 1 location

@@ 817-825 (lines=9) @@
814
    /**
815
     * {@inheritdoc}
816
     */
817
    public function createDatabase($name, $options = [])
818
    {
819
        if (isset($options['collation'])) {
820
            $this->execute(sprintf('CREATE DATABASE [%s] COLLATE [%s]', $name, $options['collation']));
821
        } else {
822
            $this->execute(sprintf('CREATE DATABASE [%s]', $name));
823
        }
824
        $this->execute(sprintf('USE [%s]', $name));
825
    }
826
827
    /**
828
     * {@inheritdoc}

src/Phinx/Db/Adapter/SqlServerAdapter.php 1 location

@@ 984-992 (lines=9) @@
981
    /**
982
     * {@inheritdoc}
983
     */
984
    public function createDatabase($name, $options = [])
985
    {
986
        if (isset($options['collation'])) {
987
            $this->execute(sprintf('CREATE DATABASE [%s] COLLATE [%s]', $name, $options['collation']));
988
        } else {
989
            $this->execute(sprintf('CREATE DATABASE [%s]', $name));
990
        }
991
        $this->execute(sprintf('USE [%s]', $name));
992
    }
993
994
    /**
995
     * {@inheritdoc}