Completed
Branch feature/pre-split (7b42f5)
by Anton
03:44
created
Excluded/Database/Schemas/AbstractReference.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.