@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | $container->setAlias('doctrine.migrations.configuration.test', new Alias('doctrine.migrations.configuration', true)); |
| 44 | 44 | |
| 45 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Fixtures')); |
|
| 45 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Fixtures')); |
|
| 46 | 46 | $loader->load('conf.xml'); |
| 47 | 47 | |
| 48 | 48 | $container->compile(); |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | self::assertInstanceOf(Configuration::class, $config); |
| 122 | 122 | self::assertSame([ |
| 123 | 123 | 'DoctrineMigrationsTest' => $bundle->getPath(), |
| 124 | - 'DoctrineMigrationsTestAnother' => $bundle->getPath() . '/another-path', |
|
| 124 | + 'DoctrineMigrationsTestAnother' => $bundle->getPath().'/another-path', |
|
| 125 | 125 | |
| 126 | 126 | ], $config->getMigrationDirectories()); |
| 127 | 127 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | public function testCustomSorter() : void |
| 154 | 154 | { |
| 155 | - $config = [ |
|
| 155 | + $config = [ |
|
| 156 | 156 | 'migrations_paths' => ['DoctrineMigrationsTest' => 'a'], |
| 157 | 157 | 'services' => [Comparator::class => 'my_sorter'], |
| 158 | 158 | ]; |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $conn = $this->createMock(Connection::class); |
| 162 | 162 | $container->set('doctrine.dbal.default_connection', $conn); |
| 163 | 163 | |
| 164 | - $sorter = new class() implements Comparator{ |
|
| 164 | + $sorter = new class() implements Comparator { |
|
| 165 | 165 | public function compare(Version $a, Version $b) : int |
| 166 | 166 | { |
| 167 | 167 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | |
| 178 | 178 | public function testCustomConnection() : void |
| 179 | 179 | { |
| 180 | - $config = [ |
|
| 180 | + $config = [ |
|
| 181 | 181 | 'migrations_paths' => ['DoctrineMigrationsTest' => 'a'], |
| 182 | 182 | 'connection' => 'custom', |
| 183 | 183 | ]; |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | |
| 215 | 215 | public function testCustomEntityManager() : void |
| 216 | 216 | { |
| 217 | - $config = [ |
|
| 217 | + $config = [ |
|
| 218 | 218 | 'em' => 'custom', |
| 219 | 219 | 'migrations_paths' => ['DoctrineMigrationsTest' => 'a'], |
| 220 | 220 | ]; |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | $this->expectException(InvalidConfigurationException::class); |
| 264 | 264 | $this->expectExceptionMessage('Invalid configuration for path "doctrine_migrations.services": Valid services for the DoctrineMigrationsBundle must be in the "Doctrine\Migrations" namespace.'); |
| 265 | 265 | |
| 266 | - $config = [ |
|
| 266 | + $config = [ |
|
| 267 | 267 | 'migrations_paths' => ['DoctrineMigrationsTest' => 'a'], |
| 268 | 268 | 'services' => ['foo' => 'mock_storage_service'], |
| 269 | 269 | ]; |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | ], |
| 326 | 326 | 'kernel.cache_dir' => sys_get_temp_dir(), |
| 327 | 327 | 'kernel.environment' => 'test', |
| 328 | - 'kernel.project_dir' => __DIR__ . '/../', |
|
| 328 | + 'kernel.project_dir' => __DIR__.'/../', |
|
| 329 | 329 | ])); |
| 330 | 330 | } |
| 331 | 331 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | $config = $this->processConfiguration($configuration, $configs); |
| 39 | 39 | |
| 40 | - $locator = new FileLocator(__DIR__ . '/../Resources/config/'); |
|
| 40 | + $locator = new FileLocator(__DIR__.'/../Resources/config/'); |
|
| 41 | 41 | $loader = new XmlFileLoader($container, $locator); |
| 42 | 42 | |
| 43 | 43 | $loader->load('services.xml'); |
@@ -70,26 +70,26 @@ discard block |
||
| 70 | 70 | $diDefinition->addMethodCall('setService', [$doctrineId, new Reference($symfonyId)]); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - if (! isset($config['services'][MetadataStorage::class])) { |
|
| 73 | + if (!isset($config['services'][MetadataStorage::class])) { |
|
| 74 | 74 | $storageConfiguration = $config['storage']['table_storage']; |
| 75 | 75 | |
| 76 | 76 | $storageDefinition = new Definition(TableMetadataStorageConfiguration::class); |
| 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 | |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $bundleName = substr($pathParts[0], 1); |
| 114 | 114 | |
| 115 | 115 | $bundlePath = $this->getBundlePath($bundleName, $container); |
| 116 | - return $bundlePath . substr($path, strlen('@' . $bundleName)); |
|
| 116 | + return $bundlePath.substr($path, strlen('@'.$bundleName)); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | return $path; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | { |
| 124 | 124 | $bundleMetadata = $container->getParameter('kernel.bundles_metadata'); |
| 125 | 125 | |
| 126 | - if (! isset($bundleMetadata[$bundleName])) { |
|
| 126 | + if (!isset($bundleMetadata[$bundleName])) { |
|
| 127 | 127 | throw new RuntimeException(sprintf( |
| 128 | 128 | 'The bundle "%s" has not been registered, available bundles: %s', |
| 129 | 129 | $bundleName, |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | public function getXsdValidationBasePath() : string |
| 143 | 143 | { |
| 144 | - return __DIR__ . '/../Resources/config/schema'; |
|
| 144 | + return __DIR__.'/../Resources/config/schema'; |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | public function getNamespace() : string |