Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 105-107 (lines=3) @@
102
				case $type === 'BIT':
103
					$field[] = 'DEFAULT b\''.preg_replace('/[^01]/', '0', $defaultValue).'\'';
104
					break;
105
				case $type === 'BOOLEAN':
106
					$field[] = 'DEFAULT '.preg_match('/^1|T|TRUE|YES$/i', $defaultValue) ? 'TRUE' : 'FALSE';
107
					break;
108
				case $type === 'BINARY' || $type === 'VARBINARY':
109
					$field[] = 'DEFAULT 0x'.$defaultValue;
110
					break;

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

@@ 118-120 (lines=3) @@
115
				case $type === 'BIT' || $type === 'VARBIT':
116
					$field[] = 'DEFAULT b\''.preg_replace('/[^01]/', '0', $defaultValue).'\'';
117
					break;
118
				case $type === 'BOOLEAN':
119
					$field[] = 'DEFAULT '.preg_match('/^1|T|TRUE|YES$/i', $defaultValue) ? 'TRUE' : 'FALSE';
120
					break;
121
				case strtoupper($defaultValue) === 'NULL' && $isNull === true:
122
					$field[] = 'DEFAULT NULL';
123
					break;