Failed Conditions
Push — master ( f9b4c0...25e0b2 )
by Asmir
41s queued 11s
created
DependencyInjection/Configuration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
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.
DoctrineMigrationsBundle.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,6 @@
 block discarded – undo
17 17
 {
18 18
     public function build(ContainerBuilder $builder)
19 19
     {
20
-      $builder->addCompilerPass(new ConfigureDependencyFactoryPass());
20
+        $builder->addCompilerPass(new ConfigureDependencyFactoryPass());
21 21
     }
22 22
 }
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
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.