Code Duplication    Length = 8-8 lines in 3 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

@@ 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/OracleAdapter.php 1 location

@@ 187-194 (lines=8) @@
184
        $sqlBuffer = [];
185
        $columnsWithComments = [];
186
187
        foreach ($columns as $column) {
188
            $sqlBuffer[] = $this->quoteColumnName($column->getName()) . ' ' . $this->getColumnSqlDefinition($column);
189
190
            // set column comments, if needed
191
            if ($column->getComment()) {
192
                $columnsWithComments[] = $column;
193
            }
194
        }
195
196
        // set the primary key(s)
197
        if (isset($options['primary_key'])) {