@@ -32,50 +32,50 @@ discard block |
||
| 32 | 32 | $config = $this->processConfiguration($configuration, $configs); |
| 33 | 33 | |
| 34 | 34 | foreach ($config as $key => $value) { |
| 35 | - $container->setParameter($this->getAlias() . '.' . $key, $value); |
|
| 35 | + $container->setParameter($this->getAlias().'.'.$key, $value); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $configurationDefinition = new Definition(MigrationsConfiguration::class); |
| 39 | 39 | $container->setDefinition('doctrine.migrations.configuration', $configurationDefinition); |
| 40 | 40 | |
| 41 | - if (! empty($config['name'])) { |
|
| 41 | + if (!empty($config['name'])) { |
|
| 42 | 42 | $configurationDefinition->addMethodCall('setName', [$config['name']]); |
| 43 | 43 | } |
| 44 | - if (! empty($config['migrations_paths'])) { |
|
| 44 | + if (!empty($config['migrations_paths'])) { |
|
| 45 | 45 | foreach ($config['migrations_paths'] as $ns => $path) { |
| 46 | 46 | $configurationDefinition->addMethodCall('addMigrationsDirectory', [$ns, $path]); |
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | - if (! empty($config['all_or_nothing'])) { |
|
| 49 | + if (!empty($config['all_or_nothing'])) { |
|
| 50 | 50 | $configurationDefinition->addMethodCall('setAllOrNothing', [$config['all_or_nothing']]); |
| 51 | 51 | } |
| 52 | - if (! empty($config['custom_template'])) { |
|
| 52 | + if (!empty($config['custom_template'])) { |
|
| 53 | 53 | $configurationDefinition->setCustomTemplate('setName', [$config['custom_template']]); |
| 54 | 54 | } |
| 55 | - if (! empty($config['organize_migrations'])) { |
|
| 55 | + if (!empty($config['organize_migrations'])) { |
|
| 56 | 56 | $configurationDefinition->addMethodCall('setMigrationOrganization', [$config['organize_migrations']]); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - if (! empty($config['storage']['table_storage'])) { |
|
| 59 | + if (!empty($config['storage']['table_storage'])) { |
|
| 60 | 60 | $sConf = $config['storage']['table_storage']; |
| 61 | 61 | |
| 62 | 62 | $storageDefinition = new Definition(TableMetadataStorageConfiguration::class); |
| 63 | 63 | $container->setDefinition('doctrine.migrations.storage.table_storage', $storageDefinition); |
| 64 | 64 | $container->setAlias('doctrine.migrations.metadata_storage', 'doctrine.migrations.storage.table_storage'); |
| 65 | 65 | |
| 66 | - if (! empty($sConf['table_name'])) { |
|
| 66 | + if (!empty($sConf['table_name'])) { |
|
| 67 | 67 | $configurationDefinition->addMethodCall('setTableName', [$sConf['table_name']]); |
| 68 | 68 | } |
| 69 | - if (! empty($sConf['version_column_name'])) { |
|
| 69 | + if (!empty($sConf['version_column_name'])) { |
|
| 70 | 70 | $configurationDefinition->addMethodCall('setVersionColumnName', [$sConf['version_column_name']]); |
| 71 | 71 | } |
| 72 | - if (! empty($sConf['version_column_length'])) { |
|
| 72 | + if (!empty($sConf['version_column_length'])) { |
|
| 73 | 73 | $configurationDefinition->addMethodCall('setVersionColumnLength', [$sConf['version_column_length']]); |
| 74 | 74 | } |
| 75 | - if (! empty($sConf['executed_at_column_name'])) { |
|
| 75 | + if (!empty($sConf['executed_at_column_name'])) { |
|
| 76 | 76 | $configurationDefinition->addMethodCall('setExecutedAtColumnName', [$sConf['executed_at_column_name']]); |
| 77 | 77 | } |
| 78 | - if (! empty($sConf['execution_time_column_name'])) { |
|
| 78 | + if (!empty($sConf['execution_time_column_name'])) { |
|
| 79 | 79 | $configurationDefinition->addMethodCall('setExecutionTimeColumnName', [$sConf['execution_time_column_name']]); |
| 80 | 80 | } |
| 81 | 81 | |
@@ -94,15 +94,15 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | $container->setDefinition('doctrine.migrations.di', $diDefinition); |
| 96 | 96 | |
| 97 | - if (! empty($config['all_or_nothing'])) { |
|
| 97 | + if (!empty($config['all_or_nothing'])) { |
|
| 98 | 98 | $configurationDefinition->addMethodCall('setAllOrNothing', [$config['all_or_nothing']]); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - if (! empty($config['sorter'])) { |
|
| 101 | + if (!empty($config['sorter'])) { |
|
| 102 | 102 | $configurationDefinition->addMethodCall('setSorter', [new Reference($config['sorter'])]); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - $locator = new FileLocator(__DIR__ . '/../Resources/config/'); |
|
| 105 | + $locator = new FileLocator(__DIR__.'/../Resources/config/'); |
|
| 106 | 106 | $loader = new XmlFileLoader($container, $locator); |
| 107 | 107 | |
| 108 | 108 | $loader->load('services.xml'); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | */ |
| 116 | 116 | public function getXsdValidationBasePath() : string |
| 117 | 117 | { |
| 118 | - return __DIR__ . '/../Resources/config/schema'; |
|
| 118 | + return __DIR__.'/../Resources/config/schema'; |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | public function getNamespace() : string |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | ->requiresAtLeastOneElement() |
| 47 | 47 | ->defaultValue(['%kernel.root_dir%/DoctrineMigrations' => 'Application\Migrations']) |
| 48 | 48 | ->prototype('scalar')->end() |
| 49 | - ->end() |
|
| 49 | + ->end() |
|
| 50 | 50 | |
| 51 | 51 | ->arrayNode('storage') |
| 52 | 52 | ->children() |