Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 202-209 (lines=8) @@
199
        $sql .= $this->quoteTableName($table->getName()) . ' (';
200
201
        $this->columnsWithComments = [];
202
        foreach ($columns as $column) {
203
            $sql .= $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column) . ', ';
204
205
            // set column comments, if needed
206
            if ($column->getComment()) {
207
                $this->columnsWithComments[] = $column;
208
            }
209
        }
210
211
         // set the primary key(s)
212
        if (isset($options['primary_key'])) {

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

@@ 236-243 (lines=8) @@
233
        $sql .= $this->quoteTableName($table->getName()) . ' (';
234
        $sqlBuffer = [];
235
        $columnsWithComments = [];
236
        foreach ($columns as $column) {
237
            $sqlBuffer[] = $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column);
238
239
            // set column comments, if needed
240
            if ($column->getComment()) {
241
                $columnsWithComments[] = $column;
242
            }
243
        }
244
245
        // set the primary key(s)
246
        if (isset($options['primary_key'])) {