@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | if ($appName === 'core') { |
| 69 | - $this->migrationsPath = \OC::$SERVERROOT . '/core/Migrations'; |
|
| 69 | + $this->migrationsPath = \OC::$SERVERROOT.'/core/Migrations'; |
|
| 70 | 70 | $this->migrationsNamespace = 'OC\\Core\\Migrations'; |
| 71 | 71 | } else { |
| 72 | 72 | if (null === $appLocator) { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | $appPath = $appLocator->getAppPath($appName); |
| 76 | 76 | $namespace = App::buildAppNamespace($appName); |
| 77 | 77 | $this->migrationsPath = "$appPath/lib/Migration"; |
| 78 | - $this->migrationsNamespace = $namespace . '\\Migration'; |
|
| 78 | + $this->migrationsNamespace = $namespace.'\\Migration'; |
|
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | |
@@ -129,12 +129,12 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | // Drop the table, when it didn't match our expectations. |
| 132 | - $this->connection->dropTable($this->connection->getPrefix() . 'migrations'); |
|
| 132 | + $this->connection->dropTable($this->connection->getPrefix().'migrations'); |
|
| 133 | 133 | } catch (SchemaException $e) { |
| 134 | 134 | // Table not found, no need to panic, we will create it. |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | - $tableName = $this->connection->getPrefix() . 'migrations'; |
|
| 137 | + $tableName = $this->connection->getPrefix().'migrations'; |
|
| 138 | 138 | $tableName = $this->connection->getDatabasePlatform()->quoteIdentifier($tableName); |
| 139 | 139 | |
| 140 | 140 | $columns = [ |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | \RegexIterator::GET_MATCH); |
| 200 | 200 | |
| 201 | 201 | $files = array_keys(iterator_to_array($iterator)); |
| 202 | - uasort($files, function ($a, $b) { |
|
| 202 | + uasort($files, function($a, $b) { |
|
| 203 | 203 | preg_match('/^Version(\d+)Date(\d+)\\.php$/', basename($a), $matchA); |
| 204 | 204 | preg_match('/^Version(\d+)Date(\d+)\\.php$/', basename($b), $matchB); |
| 205 | 205 | if (!empty($matchA) && !empty($matchB)) { |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | * @return string |
| 278 | 278 | */ |
| 279 | 279 | public function getMigrationsTableName() { |
| 280 | - return $this->connection->getPrefix() . 'migrations'; |
|
| 280 | + return $this->connection->getPrefix().'migrations'; |
|
| 281 | 281 | } |
| 282 | 282 | |
| 283 | 283 | /** |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | * @return mixed|null|string |
| 306 | 306 | */ |
| 307 | 307 | public function getMigration($alias) { |
| 308 | - switch($alias) { |
|
| 308 | + switch ($alias) { |
|
| 309 | 309 | case 'current': |
| 310 | 310 | return $this->getCurrentVersion(); |
| 311 | 311 | case 'next': |