@@ -43,7 +43,7 @@ |
||
43 | 43 | ->name('*.csv') |
44 | 44 | ->sort( |
45 | 45 | // 定義ファイルに記載の順にソート. |
46 | - function (\SplFileInfo $a, \SplFileInfo $b) use ($definition) { |
|
46 | + function(\SplFileInfo $a, \SplFileInfo $b) use ($definition) { |
|
47 | 47 | if (!isset($definition[$a->getFilename()])) { |
48 | 48 | throw new \Exception(sprintf('"%s" is undefined in %s', $a->getFilename())); |
49 | 49 | } |
@@ -18,8 +18,8 @@ |
||
18 | 18 | $config->setMigrationsTableName(self::MIGRATION_TABLE_PREFIX.$pluginCode); |
19 | 19 | $migration = new Migration($config); |
20 | 20 | $migration->setNoMigrationException(true); |
21 | - // null 又は 'last' を渡すと最新バージョンまでマイグレートする |
|
22 | - // 0か'first'を渡すと最初に戻る |
|
21 | + // null 又は 'last' を渡すと最新バージョンまでマイグレートする |
|
22 | + // 0か'first'を渡すと最初に戻る |
|
23 | 23 | $migration->migrate($version, false); |
24 | 24 | |
25 | 25 |
@@ -9,12 +9,12 @@ |
||
9 | 9 | |
10 | 10 | CONST MIGRATION_TABLE_PREFIX = 'migration_'; |
11 | 11 | |
12 | - public function migrationSchema($app,$migrationFilePath,$pluginCode,$version=null) |
|
12 | + public function migrationSchema($app, $migrationFilePath, $pluginCode, $version = null) |
|
13 | 13 | { |
14 | 14 | $config = new Configuration($app['db']); |
15 | 15 | $config->setMigrationsNamespace('DoctrineMigrations'); |
16 | 16 | $config->setMigrationsDirectory($migrationFilePath); |
17 | - $config->registerMigrationsFromDirectory($migrationFilePath ); |
|
17 | + $config->registerMigrationsFromDirectory($migrationFilePath); |
|
18 | 18 | $config->setMigrationsTableName(self::MIGRATION_TABLE_PREFIX.$pluginCode); |
19 | 19 | $migration = new Migration($config); |
20 | 20 | $migration->setNoMigrationException(true); |