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

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