Completed
Branch feature/pre-split (42159e)
by Anton
05:36
created
source/Spiral/Database/Drivers/MySQL/MySQLHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,6 +92,6 @@
 block discarded – undo
92 92
             throw new SchemaException('MySQL commander can process only MySQL tables');
93 93
         }
94 94
 
95
-        return parent::createStatement($table) . " ENGINE {$table->getEngine()}";
95
+        return parent::createStatement($table)." ENGINE {$table->getEngine()}";
96 96
     }
97 97
 }
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/SQLite/Schemas/SQLiteReference.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function getName(): string
23 23
     {
24
-        return $this->tablePrefix . $this->table . '_' . $this->column . '_fk';
24
+        return $this->tablePrefix.$this->table.'_'.$this->column.'_fk';
25 25
     }
26 26
 
27 27
     /**
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
         $statement = [];
33 33
 
34 34
         $statement[] = 'FOREIGN KEY';
35
-        $statement[] = '(' . $driver->identifier($this->column) . ')';
35
+        $statement[] = '('.$driver->identifier($this->column).')';
36 36
 
37
-        $statement[] = 'REFERENCES ' . $driver->identifier($this->foreignTable);
38
-        $statement[] = '(' . $driver->identifier($this->foreignKey) . ')';
37
+        $statement[] = 'REFERENCES '.$driver->identifier($this->foreignTable);
38
+        $statement[] = '('.$driver->identifier($this->foreignKey).')';
39 39
 
40 40
         $statement[] = "ON DELETE {$this->deleteRule}";
41 41
         $statement[] = "ON UPDATE {$this->updateRule}";
Please login to merge, or discard this patch.
source/Spiral/Database/Schemas/Prototypes/AbstractColumn.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
      */
638 638
     public function __toString()
639 639
     {
640
-        return $this->table . '.' . $this->getName();
640
+        return $this->table.'.'.$this->getName();
641 641
     }
642 642
 
643 643
     /**
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
         }
696 696
 
697 697
         if (!empty($enumValues)) {
698
-            return '(' . implode(', ', $enumValues) . ')';
698
+            return '('.implode(', ', $enumValues).')';
699 699
         }
700 700
 
701 701
         return '';
Please login to merge, or discard this patch.