Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 189-191 (lines=3) @@
186
187
        $sql = 'CREATE TABLE ';
188
        $sql .= $this->quoteTableName($table->getName()) . ' (';
189
        foreach ($columns as $column) {
190
            $sql .= $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column) . ', ';
191
        }
192
193
        // set the primary key(s)
194
        if (isset($options['primary_key'])) {

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

@@ 264-266 (lines=3) @@
261
262
        $sql = 'CREATE TABLE ';
263
        $sql .= $this->quoteTableName($table->getName()) . ' (';
264
        foreach ($columns as $column) {
265
            $sql .= $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column) . ', ';
266
        }
267
268
        // set the primary key(s)
269
        if (isset($options['primary_key'])) {