Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 949-957 (lines=9) @@
946
    /**
947
     * {@inheritdoc}
948
     */
949
    public function createDatabase($name, $options = [])
950
    {
951
        if (isset($options['collation'])) {
952
            $this->execute(sprintf('CREATE DATABASE [%s] COLLATE [%s]', $name, $options['collation']));
953
        } else {
954
            $this->execute(sprintf('CREATE DATABASE [%s]', $name));
955
        }
956
        $this->execute(sprintf('USE [%s]', $name));
957
    }
958
959
    /**
960
     * {@inheritdoc}

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

@@ 834-842 (lines=9) @@
831
     * {@inheritdoc}
832
     */
833
    //    TODO
834
    public function createDatabase($name, $options = [])
835
    {
836
        if (isset($options['collation'])) {
837
            $this->execute(sprintf('CREATE DATABASE [%s] COLLATE [%s]', $name, $options['collation']));
838
        } else {
839
            $this->execute(sprintf('CREATE DATABASE [%s]', $name));
840
        }
841
        $this->execute(sprintf('USE [%s]', $name));
842
    }
843
844
    /**
845
     * {@inheritdoc}