Code Duplication    Length = 6-8 lines in 2 locations

src/Columns/AbstractColumn.php 1 location

@@ 136-143 (lines=8) @@
133
134
		$charset   = '';
135
		$collation = '';
136
		if( $this instanceof CharsetColumnInterface ) {
137
			if( $this->getCharset() ) {
138
				$charset = ' CHARACTER SET ' . $this->getCharset();
139
				if( $this->getCollation() ) {
140
					$collation = ' COLLATE ' . $this->getCollation();
141
				}
142
			}
143
		}
144
145
		$comment = '';
146
		if( $this->comment ) {

src/Table.php 1 location

@@ 233-238 (lines=6) @@
230
231
		$charset   = '';
232
		$collation = '';
233
		if( $this->getCharset() ) {
234
			$charset = ' CHARACTER SET ' . $this->getCharset();
235
			if( $this->getCollation() ) {
236
				$collation = ' COLLATE ' . $this->getCollation();
237
			}
238
		}
239
240
241
		$comment = '';