Completed
Branch feature/pre-split (76ded7)
by Anton
03:22
created
index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@
 block discarded – undo
29 29
 
30 30
 
31 31
 foreach ($schema->getColumns() as $column) {
32
-    print_R($column->getName() . " ");
33
-    print_R($column->abstractType() . "\n ");
32
+    print_R($column->getName()." ");
33
+    print_R($column->abstractType()."\n ");
34 34
 }
35 35
 
36 36
 print_r($schema->getPrimaryKeys());
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/SQLite/Schemas/ColumnSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
 
131 131
         $quoted = $driver->getPDO()->quote($this->name);
132 132
 
133
-        return "$statement CHECK ({$quoted} IN (" . implode(', ', $enumValues) . '))';
133
+        return "$statement CHECK ({$quoted} IN (".implode(', ', $enumValues).'))';
134 134
     }
135 135
 
136 136
     /**
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/SQLite/Schemas/TableSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
     private function columnSchemas(array $include = []): array
84 84
     {
85 85
         $columns = $this->driver->query(
86
-            "PRAGMA TABLE_INFO(" . $this->driver->quote($this->getName()) . ")"
86
+            "PRAGMA TABLE_INFO(".$this->driver->quote($this->getName()).")"
87 87
         );
88 88
 
89 89
         $result = [];
Please login to merge, or discard this patch.
source/Spiral/Database/Drivers/MySQL/Schemas/ColumnSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
 
201 201
         //Fetching enum values
202 202
         if ($column->abstractType() == 'enum' && !empty($options)) {
203
-            $column->enumValues = array_map(function ($value) {
203
+            $column->enumValues = array_map(function($value) {
204 204
                 return trim($value, $value[0]);
205 205
             }, explode(',', $options));
206 206
 
Please login to merge, or discard this patch.
source/Spiral/Database/Schemas/Prototypes/AbstractTable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
source/Spiral/Database/Schemas/Prototypes/AbstractColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -748,7 +748,7 @@
 block discarded – undo
748 748
         }
749 749
 
750 750
         if (!empty($enumValues)) {
751
-            return '(' . implode(', ', $enumValues) . ')';
751
+            return '('.implode(', ', $enumValues).')';
752 752
         }
753 753
 
754 754
         return '';
Please login to merge, or discard this patch.