Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 244-248 (lines=5) @@
241
        $sql .= ');';
242
243
        // process column comments
244
        if (!empty($this->columnsWithComments)) {
245
            foreach ($this->columnsWithComments as $column) {
246
                $sql .= $this->getColumnCommentSqlDefinition($column, $table->getName());
247
            }
248
        }
249
250
        // set the indexes
251
        if (!empty($indexes)) {

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

@@ 96-100 (lines=5) @@
93
        $sql .= ';';
94
95
        // process column comments
96
        if (!empty($this->columnsWithComments)) {
97
            foreach ($this->columnsWithComments as $column) {
98
                $sql .= $this->getColumnCommentSqlDefinition($column, $table->getName());
99
            }
100
        }
101
102
        // set the indexes
103
        if (!empty($indexes)) {