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

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