@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | $column->changedProperties = array_diff($column->changedProperties, ['autoincrement', 'unsigned']); |
| 155 | 155 | } |
| 156 | 156 | // remove columns that no longer have changed (because autoincrement and unsigned are not supported) |
| 157 | - $tableDiff->changedColumns = array_filter($tableDiff->changedColumns, function (ColumnDiff $column) { |
|
| 157 | + $tableDiff->changedColumns = array_filter($tableDiff->changedColumns, function(ColumnDiff $column) { |
|
| 158 | 158 | return count($column->changedProperties) > 0; |
| 159 | 159 | }); |
| 160 | 160 | |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * @return string |
| 204 | 204 | */ |
| 205 | 205 | protected function generateTemporaryTableName($name) { |
| 206 | - return 'oc_' . uniqid(); |
|
| 206 | + return 'oc_'.uniqid(); |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | /** |
@@ -212,16 +212,16 @@ discard block |
||
| 212 | 212 | */ |
| 213 | 213 | protected function convertStatementToScript($statement) { |
| 214 | 214 | if (substr($statement, -1) === ';') { |
| 215 | - return $statement . PHP_EOL . '/' . PHP_EOL; |
|
| 215 | + return $statement.PHP_EOL.'/'.PHP_EOL; |
|
| 216 | 216 | } |
| 217 | - $script = $statement . ';'; |
|
| 217 | + $script = $statement.';'; |
|
| 218 | 218 | $script .= PHP_EOL; |
| 219 | 219 | $script .= PHP_EOL; |
| 220 | 220 | return $script; |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | protected function getFilterExpression() { |
| 224 | - return '/^"' . preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')) . '/'; |
|
| 224 | + return '/^"'.preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')).'/'; |
|
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | } |