Code Duplication    Length = 8-8 lines in 2 locations

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

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

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

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