@@ -56,7 +56,7 @@ |
||
| 56 | 56 | }) |
| 57 | 57 | ->thenInvalid('At least one migrations path must be specified.') |
| 58 | 58 | ->end() |
| 59 | - ->end() |
|
| 59 | + ->end() |
|
| 60 | 60 | |
| 61 | 61 | ->arrayNode('storage') |
| 62 | 62 | ->addDefaultsIfNotSet() |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | ->defaultValue(['%kernel.project_dir%/src/Migrations' => 'App\Migrations']) |
| 55 | 55 | ->prototype('scalar')->end() |
| 56 | 56 | ->validate() |
| 57 | - ->ifTrue(static function (array $v) : bool { |
|
| 57 | + ->ifTrue(static function(array $v) : bool { |
|
| 58 | 58 | return count($v) === 0; |
| 59 | 59 | }) |
| 60 | 60 | ->thenInvalid('At least one migrations path must be specified.') |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | ->defaultValue(false) |
| 117 | 117 | ->info('Organize migrations mode. Possible values are: "BY_YEAR", "BY_YEAR_AND_MONTH", false') |
| 118 | 118 | ->validate() |
| 119 | - ->ifTrue(static function ($v) use ($organizeMigrationModes) { |
|
| 119 | + ->ifTrue(static function($v) use ($organizeMigrationModes) { |
|
| 120 | 120 | if ($v === false) { |
| 121 | 121 | return false; |
| 122 | 122 | } |
@@ -131,8 +131,8 @@ discard block |
||
| 131 | 131 | ->end() |
| 132 | 132 | ->validate() |
| 133 | 133 | ->ifString() |
| 134 | - ->then(static function ($v) { |
|
| 135 | - return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_' . strtoupper($v)); |
|
| 134 | + ->then(static function($v) { |
|
| 135 | + return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_'.strtoupper($v)); |
|
| 136 | 136 | }) |
| 137 | 137 | ->end() |
| 138 | 138 | ->end() |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | $config = $this->processConfiguration($configuration, $configs); |
| 36 | 36 | |
| 37 | - $locator = new FileLocator(__DIR__ . '/../Resources/config/'); |
|
| 37 | + $locator = new FileLocator(__DIR__.'/../Resources/config/'); |
|
| 38 | 38 | $loader = new XmlFileLoader($container, $locator); |
| 39 | 39 | |
| 40 | 40 | $loader->load('services.xml'); |
@@ -77,19 +77,19 @@ discard block |
||
| 77 | 77 | $container->setDefinition('doctrine.migrations.storage.table_storage', $storageDefinition); |
| 78 | 78 | $container->setAlias('doctrine.migrations.metadata_storage', 'doctrine.migrations.storage.table_storage'); |
| 79 | 79 | |
| 80 | - if ($storageConfiguration['table_name']!== null) { |
|
| 80 | + if ($storageConfiguration['table_name'] !== null) { |
|
| 81 | 81 | $storageDefinition->addMethodCall('setTableName', [$storageConfiguration['table_name']]); |
| 82 | 82 | } |
| 83 | - if ($storageConfiguration['version_column_name']!== null) { |
|
| 83 | + if ($storageConfiguration['version_column_name'] !== null) { |
|
| 84 | 84 | $storageDefinition->addMethodCall('setVersionColumnName', [$storageConfiguration['version_column_name']]); |
| 85 | 85 | } |
| 86 | - if ($storageConfiguration['version_column_length']!== null) { |
|
| 86 | + if ($storageConfiguration['version_column_length'] !== null) { |
|
| 87 | 87 | $storageDefinition->addMethodCall('setVersionColumnLength', [$storageConfiguration['version_column_length']]); |
| 88 | 88 | } |
| 89 | - if ($storageConfiguration['executed_at_column_name']!== null) { |
|
| 89 | + if ($storageConfiguration['executed_at_column_name'] !== null) { |
|
| 90 | 90 | $storageDefinition->addMethodCall('setExecutedAtColumnName', [$storageConfiguration['executed_at_column_name']]); |
| 91 | 91 | } |
| 92 | - if ($storageConfiguration['execution_time_column_name']!== null) { |
|
| 92 | + if ($storageConfiguration['execution_time_column_name'] !== null) { |
|
| 93 | 93 | $storageDefinition->addMethodCall('setExecutionTimeColumnName', [$storageConfiguration['execution_time_column_name']]); |
| 94 | 94 | } |
| 95 | 95 | |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | */ |
| 130 | 130 | public function getXsdValidationBasePath() : string |
| 131 | 131 | { |
| 132 | - return __DIR__ . '/../Resources/config/schema'; |
|
| 132 | + return __DIR__.'/../Resources/config/schema'; |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | public function getNamespace() : string |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $container->registerExtension(new DoctrineMigrationsExtension()); |
| 33 | 33 | $container->setAlias('doctrine.migrations.configuration.test', new Alias('doctrine.migrations.configuration', true)); |
| 34 | 34 | |
| 35 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Fixtures')); |
|
| 35 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Fixtures')); |
|
| 36 | 36 | $loader->load('conf.xml'); |
| 37 | 37 | |
| 38 | 38 | $container->compile(); |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | 'kernel.bundles' => [], |
| 238 | 238 | 'kernel.cache_dir' => sys_get_temp_dir(), |
| 239 | 239 | 'kernel.environment' => 'test', |
| 240 | - 'kernel.project_dir' => __DIR__ . '/../', |
|
| 240 | + 'kernel.project_dir' => __DIR__.'/../', |
|
| 241 | 241 | ])); |
| 242 | 242 | } |
| 243 | 243 | } |