Code Duplication    Length = 8-8 lines in 2 locations

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

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

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

@@ 212-219 (lines=8) @@
209
        $sql .= $this->quoteTableName($table->getName()) . ' (';
210
211
        $this->columnsWithComments = [];
212
        foreach ($columns as $column) {
213
            $sql .= $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column) . ', ';
214
215
            // set column comments, if needed
216
            if ($column->getComment()) {
217
                $this->columnsWithComments[] = $column;
218
            }
219
        }
220
221
         // set the primary key(s)
222
        if (isset($options['primary_key'])) {