Passed
Push — master ( 0e1800...6c1629 )
by Asmir
41s queued 10s
created
Tests/DependencyInjection/DoctrineCommandsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Tests/DependencyInjection/DoctrineMigrationsExtensionTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
DependencyInjection/DoctrineMigrationsExtension.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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');
@@ -75,26 +75,26 @@  discard block
 block discarded – undo
75 75
             $diDefinition->addMethodCall('setDefinition', [$doctrineId, new Reference($symfonyId)]);
76 76
         }
77 77
 
78
-        if (! isset($config['services'][MetadataStorage::class])) {
78
+        if (!isset($config['services'][MetadataStorage::class])) {
79 79
             $storageConfiguration = $config['storage']['table_storage'];
80 80
 
81 81
             $storageDefinition = new Definition(TableMetadataStorageConfiguration::class);
82 82
             $container->setDefinition('doctrine.migrations.storage.table_storage', $storageDefinition);
83 83
             $container->setAlias('doctrine.migrations.metadata_storage', 'doctrine.migrations.storage.table_storage');
84 84
 
85
-            if ($storageConfiguration['table_name']!== null) {
85
+            if ($storageConfiguration['table_name'] !== null) {
86 86
                 $storageDefinition->addMethodCall('setTableName', [$storageConfiguration['table_name']]);
87 87
             }
88
-            if ($storageConfiguration['version_column_name']!== null) {
88
+            if ($storageConfiguration['version_column_name'] !== null) {
89 89
                 $storageDefinition->addMethodCall('setVersionColumnName', [$storageConfiguration['version_column_name']]);
90 90
             }
91
-            if ($storageConfiguration['version_column_length']!== null) {
91
+            if ($storageConfiguration['version_column_length'] !== null) {
92 92
                 $storageDefinition->addMethodCall('setVersionColumnLength', [$storageConfiguration['version_column_length']]);
93 93
             }
94
-            if ($storageConfiguration['executed_at_column_name']!== null) {
94
+            if ($storageConfiguration['executed_at_column_name'] !== null) {
95 95
                 $storageDefinition->addMethodCall('setExecutedAtColumnName', [$storageConfiguration['executed_at_column_name']]);
96 96
             }
97
-            if ($storageConfiguration['execution_time_column_name']!== null) {
97
+            if ($storageConfiguration['execution_time_column_name'] !== null) {
98 98
                 $storageDefinition->addMethodCall('setExecutionTimeColumnName', [$storageConfiguration['execution_time_column_name']]);
99 99
             }
100 100
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             $bundleName = substr($pathParts[0], 1);
119 119
 
120 120
             $bundlePath = $this->getBundlePath($bundleName, $container);
121
-            return $bundlePath . substr($path, strlen('@' . $bundleName));
121
+            return $bundlePath.substr($path, strlen('@'.$bundleName));
122 122
         }
123 123
 
124 124
         return $path;
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $bundleMetadata = $container->getParameter('kernel.bundles_metadata');
130 130
 
131
-        if (! isset($bundleMetadata[$bundleName])) {
131
+        if (!isset($bundleMetadata[$bundleName])) {
132 132
             throw new RuntimeException(sprintf(
133 133
                 'The bundle "%s" has not been registered, available bundles: %s',
134 134
                 $bundleName,
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function getXsdValidationBasePath() : string
148 148
     {
149
-        return __DIR__ . '/../Resources/config/schema';
149
+        return __DIR__.'/../Resources/config/schema';
150 150
     }
151 151
 
152 152
     public function getNamespace() : string
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
                     ->useAttributeAsKey('service')
59 59
                     ->defaultValue([])
60 60
                     ->validate()
61
-                        ->ifTrue(static function ($v) {
62
-                            return count(array_filter(array_keys($v), static function (string $doctrineService) : bool {
63
-                                return strpos($doctrineService, 'Doctrine\Migrations\\') !==0;
61
+                        ->ifTrue(static function($v) {
62
+                            return count(array_filter(array_keys($v), static function(string $doctrineService) : bool {
63
+                                return strpos($doctrineService, 'Doctrine\Migrations\\') !== 0;
64 64
                             }));
65 65
                         })
66 66
                         ->thenInvalid('Valid services for the DoctrineMigrationsBundle must be in the "Doctrine\Migrations" namespace.')
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
                     ->useAttributeAsKey('factory')
74 74
                     ->defaultValue([])
75 75
                     ->validate()
76
-                        ->ifTrue(static function ($v) {
77
-                            return count(array_filter(array_keys($v), static function (string $doctrineService) : bool {
78
-                                return strpos($doctrineService, 'Doctrine\Migrations\\') !==0;
76
+                        ->ifTrue(static function($v) {
77
+                            return count(array_filter(array_keys($v), static function(string $doctrineService) : bool {
78
+                                return strpos($doctrineService, 'Doctrine\Migrations\\') !== 0;
79 79
                             }));
80 80
                         })
81 81
                         ->thenInvalid('Valid callables for the DoctrineMigrationsBundle must be in the "Doctrine\Migrations" namespace.')
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                     ->defaultValue(false)
131 131
                     ->info('Organize migrations mode. Possible values are: "BY_YEAR", "BY_YEAR_AND_MONTH", false')
132 132
                     ->validate()
133
-                        ->ifTrue(static function ($v) use ($organizeMigrationModes) {
133
+                        ->ifTrue(static function($v) use ($organizeMigrationModes) {
134 134
                             if ($v === false) {
135 135
                                 return false;
136 136
                             }
@@ -145,8 +145,8 @@  discard block
 block discarded – undo
145 145
                     ->end()
146 146
                     ->validate()
147 147
                         ->ifString()
148
-                            ->then(static function ($v) {
149
-                                return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_' . strtoupper($v));
148
+                            ->then(static function($v) {
149
+                                return constant('Doctrine\Migrations\Configuration\Configuration::VERSIONS_ORGANIZATION_'.strtoupper($v));
150 150
                             })
151 151
                     ->end()
152 152
                 ->end()
Please login to merge, or discard this patch.