@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | $config = $this->processConfiguration($configuration, $configs); |
| 40 | 40 | |
| 41 | - $locator = new FileLocator(__DIR__ . '/../Resources/config/'); |
|
| 41 | + $locator = new FileLocator(__DIR__.'/../Resources/config/'); |
|
| 42 | 42 | $loader = new XmlFileLoader($container, $locator); |
| 43 | 43 | |
| 44 | 44 | $loader->load('services.xml'); |
@@ -71,26 +71,26 @@ discard block |
||
| 71 | 71 | $diDefinition->addMethodCall('setDefinition', [$doctrineId, new ServiceClosureArgument(new Reference($symfonyId))]); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - if (! isset($config['services'][MetadataStorage::class])) { |
|
| 74 | + if (!isset($config['services'][MetadataStorage::class])) { |
|
| 75 | 75 | $storageConfiguration = $config['storage']['table_storage']; |
| 76 | 76 | |
| 77 | 77 | $storageDefinition = new Definition(TableMetadataStorageConfiguration::class); |
| 78 | 78 | $container->setDefinition('doctrine.migrations.storage.table_storage', $storageDefinition); |
| 79 | 79 | $container->setAlias('doctrine.migrations.metadata_storage', 'doctrine.migrations.storage.table_storage'); |
| 80 | 80 | |
| 81 | - if ($storageConfiguration['table_name']!== null) { |
|
| 81 | + if ($storageConfiguration['table_name'] !== null) { |
|
| 82 | 82 | $storageDefinition->addMethodCall('setTableName', [$storageConfiguration['table_name']]); |
| 83 | 83 | } |
| 84 | - if ($storageConfiguration['version_column_name']!== null) { |
|
| 84 | + if ($storageConfiguration['version_column_name'] !== null) { |
|
| 85 | 85 | $storageDefinition->addMethodCall('setVersionColumnName', [$storageConfiguration['version_column_name']]); |
| 86 | 86 | } |
| 87 | - if ($storageConfiguration['version_column_length']!== null) { |
|
| 87 | + if ($storageConfiguration['version_column_length'] !== null) { |
|
| 88 | 88 | $storageDefinition->addMethodCall('setVersionColumnLength', [$storageConfiguration['version_column_length']]); |
| 89 | 89 | } |
| 90 | - if ($storageConfiguration['executed_at_column_name']!== null) { |
|
| 90 | + if ($storageConfiguration['executed_at_column_name'] !== null) { |
|
| 91 | 91 | $storageDefinition->addMethodCall('setExecutedAtColumnName', [$storageConfiguration['executed_at_column_name']]); |
| 92 | 92 | } |
| 93 | - if ($storageConfiguration['execution_time_column_name']!== null) { |
|
| 93 | + if ($storageConfiguration['execution_time_column_name'] !== null) { |
|
| 94 | 94 | $storageDefinition->addMethodCall('setExecutionTimeColumnName', [$storageConfiguration['execution_time_column_name']]); |
| 95 | 95 | } |
| 96 | 96 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $bundleName = substr($pathParts[0], 1); |
| 115 | 115 | |
| 116 | 116 | $bundlePath = $this->getBundlePath($bundleName, $container); |
| 117 | - return $bundlePath . substr($path, strlen('@' . $bundleName)); |
|
| 117 | + return $bundlePath.substr($path, strlen('@'.$bundleName)); |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | return $path; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | { |
| 125 | 125 | $bundleMetadata = $container->getParameter('kernel.bundles_metadata'); |
| 126 | 126 | |
| 127 | - if (! isset($bundleMetadata[$bundleName])) { |
|
| 127 | + if (!isset($bundleMetadata[$bundleName])) { |
|
| 128 | 128 | throw new RuntimeException(sprintf( |
| 129 | 129 | 'The bundle "%s" has not been registered, available bundles: %s', |
| 130 | 130 | $bundleName, |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | */ |
| 143 | 143 | public function getXsdValidationBasePath() : string |
| 144 | 144 | { |
| 145 | - return __DIR__ . '/../Resources/config/schema'; |
|
| 145 | + return __DIR__.'/../Resources/config/schema'; |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | public function getNamespace() : string |