@@ -37,7 +37,7 @@ |
||
37 | 37 | ); |
38 | 38 | } |
39 | 39 | |
40 | - if ($primary = $driver->getPrimary($this->database->getPrefix() . $this->table)) { |
|
40 | + if ($primary = $driver->getPrimary($this->database->getPrefix().$this->table)) { |
|
41 | 41 | $this->logger()->debug( |
42 | 42 | "Primary key '{sequence}' automatically resolved for table '{table}'.", |
43 | 43 | [ |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | } |
236 | 236 | |
237 | 237 | $type = "ALTER COLUMN {$this->getName(true)} varchar($enumSize)"; |
238 | - $operations[] = $type . ' ' . ($this->nullable ? 'NULL' : 'NOT NULL'); |
|
238 | + $operations[] = $type.' '.($this->nullable ? 'NULL' : 'NOT NULL'); |
|
239 | 239 | } else { |
240 | 240 | $type = "ALTER COLUMN {$this->getName(true)} {$this->type}"; |
241 | 241 | |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $type .= "($this->precision, $this->scale)"; |
248 | 248 | } |
249 | 249 | |
250 | - $operations[] = $type . ' ' . ($this->nullable ? 'NULL' : 'NOT NULL'); |
|
250 | + $operations[] = $type.' '.($this->nullable ? 'NULL' : 'NOT NULL'); |
|
251 | 251 | } |
252 | 252 | } |
253 | 253 | |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | |
434 | 434 | //We made some assumptions here... |
435 | 435 | if (preg_match_all( |
436 | - '/' . $name . '=[\']?([^\']+)[\']?/i', |
|
436 | + '/'.$name.'=[\']?([^\']+)[\']?/i', |
|
437 | 437 | $checkConstraint['definition'], |
438 | 438 | $matches |
439 | 439 | )) { |
@@ -453,6 +453,6 @@ discard block |
||
453 | 453 | */ |
454 | 454 | private function generateName($type) |
455 | 455 | { |
456 | - return $this->table->getName() . '_' . $this->getName() . "_{$type}_" . uniqid(); |
|
456 | + return $this->table->getName().'_'.$this->getName()."_{$type}_".uniqid(); |
|
457 | 457 | } |
458 | 458 | } |
@@ -66,7 +66,7 @@ |
||
66 | 66 | if ($column->getName() != $initial->getName()) { |
67 | 67 | //Renaming is separate operation |
68 | 68 | $this->run("sp_rename ?, ?, 'COLUMN'", [ |
69 | - $table->getName() . '.' . $initial->getName(), |
|
69 | + $table->getName().'.'.$initial->getName(), |
|
70 | 70 | $column->getName() |
71 | 71 | ]); |
72 | 72 | } |
@@ -137,7 +137,7 @@ |
||
137 | 137 | $offset = $offset + 1; |
138 | 138 | |
139 | 139 | if (!empty($limit)) { |
140 | - $statement .= "BETWEEN {$offset} AND " . ($offset + $limit - 1); |
|
140 | + $statement .= "BETWEEN {$offset} AND ".($offset + $limit - 1); |
|
141 | 141 | } else { |
142 | 142 | $statement .= ">= {$offset}"; |
143 | 143 | } |
@@ -84,7 +84,7 @@ |
||
84 | 84 | */ |
85 | 85 | public function identifier($identifier) |
86 | 86 | { |
87 | - return $identifier == '*' ? '*' : '[' . str_replace('[', '[[', $identifier) . ']'; |
|
87 | + return $identifier == '*' ? '*' : '['.str_replace('[', '[[', $identifier).']'; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -748,7 +748,7 @@ |
||
748 | 748 | } |
749 | 749 | |
750 | 750 | if (!empty($enumValues)) { |
751 | - return '(' . implode(', ', $enumValues) . ')'; |
|
751 | + return '('.implode(', ', $enumValues).')'; |
|
752 | 752 | } |
753 | 753 | |
754 | 754 | return ''; |
@@ -162,7 +162,7 @@ |
||
162 | 162 | protected function generateName() |
163 | 163 | { |
164 | 164 | //We can generate name |
165 | - $name = $this->table->getName() . '_index_' . implode('_', $this->columns) . '_' . uniqid(); |
|
165 | + $name = $this->table->getName().'_index_'.implode('_', $this->columns).'_'.uniqid(); |
|
166 | 166 | |
167 | 167 | if (strlen($name) > 64) { |
168 | 168 | //Many dbs has limitations on identifier length |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | public function references($table, $column = 'id') |
164 | 164 | { |
165 | - $this->foreignTable = $this->table->getPrefix() . $table; |
|
165 | + $this->foreignTable = $this->table->getPrefix().$table; |
|
166 | 166 | $this->foreignKey = $column; |
167 | 167 | |
168 | 168 | return $this; |
@@ -206,10 +206,10 @@ discard block |
||
206 | 206 | $statement[] = 'CONSTRAINT'; |
207 | 207 | $statement[] = $this->getName(true); |
208 | 208 | $statement[] = 'FOREIGN KEY'; |
209 | - $statement[] = '(' . $this->table->driver()->identifier($this->column) . ')'; |
|
209 | + $statement[] = '('.$this->table->driver()->identifier($this->column).')'; |
|
210 | 210 | |
211 | - $statement[] = 'REFERENCES ' . $this->table->driver()->identifier($this->foreignTable); |
|
212 | - $statement[] = '(' . $this->table->driver()->identifier($this->foreignKey) . ')'; |
|
211 | + $statement[] = 'REFERENCES '.$this->table->driver()->identifier($this->foreignTable); |
|
212 | + $statement[] = '('.$this->table->driver()->identifier($this->foreignKey).')'; |
|
213 | 213 | |
214 | 214 | $statement[] = "ON DELETE {$this->deleteRule}"; |
215 | 215 | $statement[] = "ON UPDATE {$this->updateRule}"; |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | */ |
239 | 239 | protected function generateName() |
240 | 240 | { |
241 | - $name = $this->table->getName() . '_foreign_' . $this->column . '_' . uniqid(); |
|
241 | + $name = $this->table->getName().'_foreign_'.$this->column.'_'.uniqid(); |
|
242 | 242 | |
243 | 243 | if (strlen($name) > 64) { |
244 | 244 | //Many dbs has limitations on identifier length |
@@ -93,7 +93,7 @@ |
||
93 | 93 | */ |
94 | 94 | public function realName() |
95 | 95 | { |
96 | - return $this->database->getPrefix() . $this->name; |
|
96 | + return $this->database->getPrefix().$this->name; |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |