Code Duplication    Length = 9-9 lines in 2 locations

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}

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}