@@ -55,7 +55,7 @@ |
||
| 55 | 55 | ->useAttributeAsKey('namespace') |
| 56 | 56 | ->defaultValue(['%kernel.project_dir%/src/Migrations' => 'App\Migrations']) |
| 57 | 57 | ->prototype('scalar')->end() |
| 58 | - ->end() |
|
| 58 | + ->end() |
|
| 59 | 59 | |
| 60 | 60 | ->arrayNode('services') |
| 61 | 61 | ->info('A list of pairs namespace/path where to look for migrations.') |
@@ -62,9 +62,9 @@ discard block |
||
| 62 | 62 | ->useAttributeAsKey('service') |
| 63 | 63 | ->defaultValue([]) |
| 64 | 64 | ->validate() |
| 65 | - ->ifTrue(static function ($v) { |
|
| 66 | - return count(array_filter(array_keys($v), static function (string $doctrineService) : bool { |
|
| 67 | - return strpos($doctrineService, 'Doctrine\Migrations\\') !==0; |
|
| 65 | + ->ifTrue(static function($v) { |
|
| 66 | + return count(array_filter(array_keys($v), static function(string $doctrineService) : bool { |
|
| 67 | + return strpos($doctrineService, 'Doctrine\Migrations\\') !== 0; |
|
| 68 | 68 | })); |
| 69 | 69 | }) |
| 70 | 70 | ->thenInvalid('Valid services for the DoctrineMigrationsBundle must be in the "Doctrine\Migrations" namespace.') |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | ->defaultValue(false) |
| 124 | 124 | ->info('Organize migrations mode. Possible values are: "BY_YEAR", "BY_YEAR_AND_MONTH", false') |
| 125 | 125 | ->validate() |
| 126 | - ->ifTrue(static function ($v) use ($organizeMigrationModes) { |
|
| 126 | + ->ifTrue(static function($v) use ($organizeMigrationModes) { |
|
| 127 | 127 | if ($v === false) { |
| 128 | 128 | return false; |
| 129 | 129 | } |
@@ -138,8 +138,8 @@ discard block |
||
| 138 | 138 | ->end() |
| 139 | 139 | ->validate() |
| 140 | 140 | ->ifString() |
| 141 | - ->then(static function ($v) { |
|
| 142 | - return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_' . strtoupper($v)); |
|
| 141 | + ->then(static function($v) { |
|
| 142 | + return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_'.strtoupper($v)); |
|
| 143 | 143 | }) |
| 144 | 144 | ->end() |
| 145 | 145 | ->end() |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | $config = $this->processConfiguration($configuration, $configs); |
| 34 | 34 | |
| 35 | - $locator = new FileLocator(__DIR__ . '/../Resources/config/'); |
|
| 35 | + $locator = new FileLocator(__DIR__.'/../Resources/config/'); |
|
| 36 | 36 | $loader = new XmlFileLoader($container, $locator); |
| 37 | 37 | |
| 38 | 38 | $loader->load('services.xml'); |
@@ -66,26 +66,26 @@ discard block |
||
| 66 | 66 | $diDefinition->addMethodCall('setService', [$doctrineId, new Reference($symfonyId)]); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - if (! isset($config['services'][MetadataStorage::class])) { |
|
| 69 | + if (!isset($config['services'][MetadataStorage::class])) { |
|
| 70 | 70 | $storageConfiguration = $config['storage']['table_storage']; |
| 71 | 71 | |
| 72 | 72 | $storageDefinition = new Definition(TableMetadataStorageConfiguration::class); |
| 73 | 73 | $container->setDefinition('doctrine.migrations.storage.table_storage', $storageDefinition); |
| 74 | 74 | $container->setAlias('doctrine.migrations.metadata_storage', 'doctrine.migrations.storage.table_storage'); |
| 75 | 75 | |
| 76 | - if ($storageConfiguration['table_name']!== null) { |
|
| 76 | + if ($storageConfiguration['table_name'] !== null) { |
|
| 77 | 77 | $storageDefinition->addMethodCall('setTableName', [$storageConfiguration['table_name']]); |
| 78 | 78 | } |
| 79 | - if ($storageConfiguration['version_column_name']!== null) { |
|
| 79 | + if ($storageConfiguration['version_column_name'] !== null) { |
|
| 80 | 80 | $storageDefinition->addMethodCall('setVersionColumnName', [$storageConfiguration['version_column_name']]); |
| 81 | 81 | } |
| 82 | - if ($storageConfiguration['version_column_length']!== null) { |
|
| 82 | + if ($storageConfiguration['version_column_length'] !== null) { |
|
| 83 | 83 | $storageDefinition->addMethodCall('setVersionColumnLength', [$storageConfiguration['version_column_length']]); |
| 84 | 84 | } |
| 85 | - if ($storageConfiguration['executed_at_column_name']!== null) { |
|
| 85 | + if ($storageConfiguration['executed_at_column_name'] !== null) { |
|
| 86 | 86 | $storageDefinition->addMethodCall('setExecutedAtColumnName', [$storageConfiguration['executed_at_column_name']]); |
| 87 | 87 | } |
| 88 | - if ($storageConfiguration['execution_time_column_name']!== null) { |
|
| 88 | + if ($storageConfiguration['execution_time_column_name'] !== null) { |
|
| 89 | 89 | $storageDefinition->addMethodCall('setExecutionTimeColumnName', [$storageConfiguration['execution_time_column_name']]); |
| 90 | 90 | } |
| 91 | 91 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | public function getXsdValidationBasePath() : string |
| 125 | 125 | { |
| 126 | - return __DIR__ . '/../Resources/config/schema'; |
|
| 126 | + return __DIR__.'/../Resources/config/schema'; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | public function getNamespace() : string |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $container->registerExtension(new DoctrineMigrationsExtension()); |
| 40 | 40 | $container->setAlias('doctrine.migrations.configuration.test', new Alias('doctrine.migrations.configuration', true)); |
| 41 | 41 | |
| 42 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Fixtures')); |
|
| 42 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Fixtures')); |
|
| 43 | 43 | $loader->load('conf.xml'); |
| 44 | 44 | |
| 45 | 45 | $container->compile(); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $conn = $this->createMock(Connection::class); |
| 133 | 133 | $container->set('doctrine.dbal.default_connection', $conn); |
| 134 | 134 | |
| 135 | - $sorter = new class() implements Comparator{ |
|
| 135 | + $sorter = new class() implements Comparator { |
|
| 136 | 136 | public function compare(Version $a, Version $b) : int |
| 137 | 137 | { |
| 138 | 138 | } |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | 'kernel.bundles' => [], |
| 287 | 287 | 'kernel.cache_dir' => sys_get_temp_dir(), |
| 288 | 288 | 'kernel.environment' => 'test', |
| 289 | - 'kernel.project_dir' => __DIR__ . '/../', |
|
| 289 | + 'kernel.project_dir' => __DIR__.'/../', |
|
| 290 | 290 | ])); |
| 291 | 291 | } |
| 292 | 292 | } |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | 'kernel.bundles' => [], |
| 90 | 90 | 'kernel.cache_dir' => sys_get_temp_dir(), |
| 91 | 91 | 'kernel.environment' => 'test', |
| 92 | - 'kernel.project_dir' => __DIR__ . '/../', |
|
| 92 | + 'kernel.project_dir' => __DIR__.'/../', |
|
| 93 | 93 | ])); |
| 94 | 94 | |
| 95 | 95 | $kernel = $this->getKernel($container); |