@@ -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->formatCollate(); |
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 | /** |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | $collate = $this->formatCollate(); |
206 | 206 | $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); |
207 | 207 | |
208 | - return [str_replace([' ', ' ',], ' ', $modification)]; |
|
208 | + return [str_replace([' ', ' ', ], ' ', $modification)]; |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | public function deleteStatement(): string |