@@ -29,8 +29,8 @@ |
||
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()); |
@@ -130,7 +130,7 @@ |
||
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 | /** |
@@ -83,7 +83,7 @@ |
||
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 = []; |
@@ -200,7 +200,7 @@ |
||
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 |
@@ -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 | } |
@@ -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 ''; |