@@ -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 | |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | \RegexIterator::GET_MATCH); |
| 198 | 198 | |
| 199 | 199 | $files = array_keys(iterator_to_array($iterator)); |
| 200 | - uasort($files, function ($a, $b) { |
|
| 200 | + uasort($files, function($a, $b) { |
|
| 201 | 201 | preg_match('/^Version(\d+)Date(\d+)\\.php$/', basename($a), $matchA); |
| 202 | 202 | preg_match('/^Version(\d+)Date(\d+)\\.php$/', basename($b), $matchB); |
| 203 | 203 | if (!empty($matchA) && !empty($matchB)) { |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | * @return string |
| 276 | 276 | */ |
| 277 | 277 | public function getMigrationsTableName() { |
| 278 | - return $this->connection->getPrefix() . 'migrations'; |
|
| 278 | + return $this->connection->getPrefix().'migrations'; |
|
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | /** |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | * @return mixed|null|string |
| 304 | 304 | */ |
| 305 | 305 | public function getMigration($alias) { |
| 306 | - switch($alias) { |
|
| 306 | + switch ($alias) { |
|
| 307 | 307 | case 'current': |
| 308 | 308 | return $this->getCurrentVersion(); |
| 309 | 309 | case 'next': |