Completed
Pull Request — master (#278)
by Asmir
15:17
created
DependencyInjection/DoctrineMigrationsExtension.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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,30 +77,30 @@  discard block
 block discarded – undo
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
 
96 96
             $configurationDefinition->addMethodCall('setMetadataStorageConfiguration', [new Reference('doctrine.migrations.storage.table_storage')]);
97 97
         }
98 98
 
99
-        if ($config['em']!==null && $config['connection']!==null) {
99
+        if ($config['em'] !== null && $config['connection'] !== null) {
100 100
             throw new InvalidArgumentException('You can not specify both "connection" and "em" in the DoctrineMigrationsBundle configurations.');
101 101
         }
102 102
 
103
-        $emID = $config['em']!== null ? sprintf('doctrine.orm.%s_entity_manager', $config['em']) : null;
103
+        $emID = $config['em'] !== null ? sprintf('doctrine.orm.%s_entity_manager', $config['em']) : null;
104 104
 
105 105
         if ($emID !== null) {
106 106
             $connectionDef = new Definition(Connection::class);
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
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
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                     ->defaultValue(['%kernel.root_dir%/DoctrineMigrations' => 'Application\Migrations'])
52 52
                     ->prototype('scalar')->end()
53 53
                     ->validate()
54
-                        ->ifTrue(static function ($v) {
54
+                        ->ifTrue(static function($v) {
55 55
                             return count($v) === 0;
56 56
                         })
57 57
                         ->thenInvalid('At least one migrations path must be specified.')
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                     ->defaultValue(false)
111 111
                     ->info('Organize migrations mode. Possible values are: "BY_YEAR", "BY_YEAR_AND_MONTH", false')
112 112
                     ->validate()
113
-                        ->ifTrue(static function ($v) use ($organizeMigrationModes) {
113
+                        ->ifTrue(static function($v) use ($organizeMigrationModes) {
114 114
                             if ($v === false) {
115 115
                                 return false;
116 116
                             }
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
                     ->end()
126 126
                     ->validate()
127 127
                         ->ifString()
128
-                            ->then(static function ($v) {
129
-                                return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_' . strtoupper($v));
128
+                            ->then(static function($v) {
129
+                                return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_'.strtoupper($v));
130 130
                             })
131 131
                     ->end()
132 132
                 ->end()
Please login to merge, or discard this patch.