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

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