@@ -102,8 +102,8 @@ discard block |
||
102 | 102 | $this->prefix = $prefix; |
103 | 103 | |
104 | 104 | //Initializing states |
105 | - $this->initialState = new TableState($this->prefix . $name); |
|
106 | - $this->currentState = new TableState($this->prefix . $name); |
|
105 | + $this->initialState = new TableState($this->prefix.$name); |
|
106 | + $this->currentState = new TableState($this->prefix.$name); |
|
107 | 107 | |
108 | 108 | $this->exists = $this->driver->hasTable($this->getName()); |
109 | 109 | |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | */ |
171 | 171 | public function setName(string $name): string |
172 | 172 | { |
173 | - $this->currentState->setName($this->prefix . $name); |
|
173 | + $this->currentState->setName($this->prefix.$name); |
|
174 | 174 | |
175 | 175 | return $this->getName(); |
176 | 176 | } |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | { |
436 | 436 | if (!$this->hasIndex($columns)) { |
437 | 437 | throw new SchemaException( |
438 | - "Undefined index ['" . join("', '", $columns) . "'] in '{$this->getName()}'" |
|
438 | + "Undefined index ['".join("', '", $columns)."'] in '{$this->getName()}'" |
|
439 | 439 | ); |
440 | 440 | } |
441 | 441 | |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | { |
495 | 495 | if (!$this->hasIndex($columns)) { |
496 | 496 | throw new SchemaException( |
497 | - "Undefined index ['" . join("', '", $columns) . "'] in '{$this->getName()}'" |
|
497 | + "Undefined index ['".join("', '", $columns)."'] in '{$this->getName()}'" |
|
498 | 498 | ); |
499 | 499 | } |
500 | 500 | |
@@ -669,7 +669,7 @@ discard block |
||
669 | 669 | */ |
670 | 670 | protected function createIdentifier(string $type, array $columns): string |
671 | 671 | { |
672 | - $name = $this->getName() . '_' . $type . '_' . join('_', $columns) . '_' . uniqid(); |
|
672 | + $name = $this->getName().'_'.$type.'_'.join('_', $columns).'_'.uniqid(); |
|
673 | 673 | |
674 | 674 | if (strlen($name) > 64) { |
675 | 675 | //Many DBMS has limitations on identifier length |