@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | $isEnum = explode('enum', $this->type); |
65 | 65 | if (!empty($isEnum)) { |
66 | - $numberElements = substr_count(str_replace(['(', ')', "'",], '', $isEnum[1]), ',') + 1; |
|
66 | + $numberElements = substr_count(str_replace(['(', ')', "'", ], '', $isEnum[1]), ',') + 1; |
|
67 | 67 | if ($numberElements == 2) { |
68 | 68 | $this->type = 'tinyint'; |
69 | 69 | $this->length = 1; |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $collate = $this->getCollate() == '' ? '' : sprintf("COLLATE '%s'", $this->getCollate()); |
93 | 93 | $modification = sprintf('ALTER TABLE `%s` ADD COLUMN `%s` %s %s NULL %s %s %s;', $this->getTable(), $this->getName(), $this->getColonneType(), $null, $default, $this->getExtra(), $collate); |
94 | 94 | |
95 | - return [str_replace([' ', ' ',], ' ', $modification)]; |
|
95 | + return [str_replace([' ', ' ', ], ' ', $modification)]; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | $collate = $this->getCollate() == '' ? '' : sprintf("COLLATE '%s'", $this->getCollate()); |
199 | 199 | $modification = sprintf('ALTER TABLE `%s` CHANGE COLUMN `%s` `%s` %s %s NULL %s %s %s;', $this->getTable(), $this->getName(), $this->getName(), $this->getColonneType(), $null, $default, $this->getExtra(), $collate); |
200 | 200 | |
201 | - return [str_replace([' ', ' ',], ' ', $modification)]; |
|
201 | + return [str_replace([' ', ' ', ], ' ', $modification)]; |
|
202 | 202 | } |
203 | 203 | |
204 | 204 | public function deleteStatement() |