Code Duplication    Length = 6-8 lines in 2 locations

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

@@ 261-268 (lines=8) @@
258
        $this->execute($sql);
259
260
        // process table comments
261
        if (isset($options['comment'])) {
262
            $sql = sprintf(
263
                'COMMENT ON TABLE %s IS %s',
264
                $this->quoteTableName($table->getName()),
265
                $this->getConnection()->quote($options['comment'])
266
            );
267
            $this->execute($sql);
268
        }
269
    }
270
271
    /**

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

@@ 114-119 (lines=6) @@
111
		$this->execute( $sql );
112
		
113
		// process table comments
114
		if ( isset( $options['comment'] ) ) {
115
			$sql = sprintf( 'COMMENT ON TABLE %s IS %s', $this->quoteTableName( $table->getName() ),
116
				$this->getConnection()
117
				     ->quote( $options['comment'] ) );
118
			$this->execute( $sql );
119
		}
120
	}
121
	
122
	/**