Code Duplication    Length = 3-3 lines in 2 locations

src/Query/Dialects/Postgres/CreateTable.php 1 location

@@ 135-137 (lines=3) @@
132
				case $type === 'BIT' || $type === 'VARBIT':
133
					$field[] = 'DEFAULT b\''.preg_replace('/[^01]/', '0', $defaultValue).'\'';
134
					break;
135
				case $type === 'BOOLEAN':
136
					$field[] = 'DEFAULT '.preg_match('/^1|T|TRUE|YES$/i', $defaultValue) ? 'TRUE' : 'FALSE';
137
					break;
138
				case strtoupper($defaultValue) === 'NULL' && $isNull === true:
139
					$field[] = 'DEFAULT NULL';
140
					break;

src/Query/Dialects/MySQL/CreateTable.php 1 location

@@ 130-132 (lines=3) @@
127
				case $type === 'BIT':
128
					$field[] = 'DEFAULT b\''.preg_replace('/[^01]/', '0', $defaultValue).'\'';
129
					break;
130
				case $type === 'BOOLEAN':
131
					$field[] = 'DEFAULT '.preg_match('/^1|T|TRUE|YES$/i', $defaultValue) ? 'TRUE' : 'FALSE';
132
					break;
133
				case $type === 'BINARY' || $type === 'VARBINARY':
134
					$field[] = 'DEFAULT 0x'.$defaultValue;
135
					break;