Code Duplication    Length = 8-8 lines in 2 locations

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'])) {

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

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