Completed
Push — master ( 06d08c...883703 )
by smiley
02:36
created
src/Query/Dialects/MySQL/CreateTable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 			$sql .= ' ('.PHP_EOL."\t".implode(','.PHP_EOL."\t", $this->cols);
41 41
 
42 42
 			if($this->primaryKey){
43
-				$sql .=','.PHP_EOL."\t".'PRIMARY KEY ('.$this->quote($this->primaryKey).')';
43
+				$sql .= ','.PHP_EOL."\t".'PRIMARY KEY ('.$this->quote($this->primaryKey).')';
44 44
 			}
45 45
 
46 46
 			$sql .= PHP_EOL.')';
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 		                  'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID'];
86 86
 
87 87
 		$field[] = (is_int($length) || is_string($length) && count(explode(',', $length)) === 2) && !in_array($type, $nolengthtypes)
88
-			? $type.'('. $length . ')'
88
+			? $type.'('.$length.')'
89 89
 			: $type;
90 90
 
91 91
 		if($attribute){
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 					$field[] = 'DEFAULT NULL';
130 130
 					break;
131 131
 				default:
132
-					$field[] = 'DEFAULT '.(is_int($defaultValue) || is_float($defaultValue) ? $defaultValue : '\''.$defaultValue.'\'') ;
132
+					$field[] = 'DEFAULT '.(is_int($defaultValue) || is_float($defaultValue) ? $defaultValue : '\''.$defaultValue.'\'');
133 133
 			}
134 134
 
135 135
 		}
Please login to merge, or discard this patch.