Test Failed
Push — master ( 3c472a...b5cc3e )
by Dominik
03:48 queued 54s
created
src/ServiceProvider/DoctrineOrmServiceProvider.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     private function getOrmEmDefinition(Container $container): callable
64 64
     {
65
-        return function () use ($container) {
65
+        return function() use ($container) {
66 66
             $ems = $container['doctrine.orm.ems'];
67 67
 
68 68
             return $ems[$container['doctrine.orm.ems.default']];
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     private function getOrmEmConfigDefinition(Container $container): callable
78 78
     {
79
-        return function () use ($container) {
79
+        return function() use ($container) {
80 80
             $configs = $container['doctrine.orm.ems.config'];
81 81
 
82 82
             return $configs[$container['doctrine.orm.ems.default']];
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     private function getOrmEmsDefinition(Container $container): callable
122 122
     {
123
-        return function () use ($container) {
123
+        return function() use ($container) {
124 124
             $container['doctrine.orm.ems.options.initializer']();
125 125
 
126 126
             $ems = new Container();
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                     $config = $container['doctrine.orm.ems.config'][$name];
132 132
                 }
133 133
 
134
-                $ems[$name] = function () use ($container, $options, $config) {
134
+                $ems[$name] = function() use ($container, $options, $config) {
135 135
                     return EntityManager::create(
136 136
                         $container['doctrine.dbal.dbs'][$options['connection']],
137 137
                         $config,
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     private function getOrmEmsConfigServiceProvider(Container $container): callable
153 153
     {
154
-        return function () use ($container) {
154
+        return function() use ($container) {
155 155
             $container['doctrine.orm.ems.options.initializer']();
156 156
 
157 157
             $configs = new Container();
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
      */
265 265
     private function getOrmEmsOptionsInitializerDefinition(Container $container): callable
266 266
     {
267
-        return $container->protect(function () use ($container) {
267
+        return $container->protect(function() use ($container) {
268 268
             static $initialized = false;
269 269
 
270 270
             if ($initialized) {
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      */
301 301
     private function getOrmEntityListenerResolverDefinition(Container $container): callable
302 302
     {
303
-        return function () use ($container) {
303
+        return function() use ($container) {
304 304
             return new DefaultEntityListenerResolver();
305 305
         };
306 306
     }
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
      */
313 313
     private function getOrmManagerRegistryDefintion(Container $container): callable
314 314
     {
315
-        return function ($container) {
315
+        return function($container) {
316 316
             return new DoctrineOrmManagerRegistry($container);
317 317
         };
318 318
     }
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
      */
325 325
     private function getOrmMappingDriverFactoryAnnotation(Container $container): callable
326 326
     {
327
-        return $container->protect(function (array $mapping, Configuration $config) {
327
+        return $container->protect(function(array $mapping, Configuration $config) {
328 328
             return $config->newDefaultAnnotationDriver((array) $mapping['path'], false);
329 329
         });
330 330
     }
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
      */
337 337
     private function getOrmMappingDriverFactoryStaticPhp(Container $container): callable
338 338
     {
339
-        return $container->protect(function (array $mapping, Configuration $config) {
339
+        return $container->protect(function(array $mapping, Configuration $config) {
340 340
             return new StaticPHPDriver($mapping['path']);
341 341
         });
342 342
     }
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
      */
349 349
     private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
350 350
     {
351
-        return $container->protect(function (array $mapping, Configuration $config) {
351
+        return $container->protect(function(array $mapping, Configuration $config) {
352 352
             return new SimplifiedYamlDriver(
353 353
                 [$mapping['path'] => $mapping['namespace']],
354 354
                 $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
      */
364 364
     private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
365 365
     {
366
-        return $container->protect(function (array $mapping, Configuration $config) {
366
+        return $container->protect(function(array $mapping, Configuration $config) {
367 367
             return new SimplifiedXmlDriver(
368 368
                 [$mapping['path'] => $mapping['namespace']],
369 369
                 $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
      */
379 379
     private function getOrmMappingDriverFactoryYaml(Container $container): callable
380 380
     {
381
-        return $container->protect(function (array $mapping, Configuration $config) {
381
+        return $container->protect(function(array $mapping, Configuration $config) {
382 382
             return new YamlDriver($mapping['path'], $mapping['extension'] ?? YamlDriver::DEFAULT_FILE_EXTENSION);
383 383
         });
384 384
     }
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
      */
391 391
     private function getOrmMappingDriverFactoryXml(Container $container): callable
392 392
     {
393
-        return $container->protect(function (array $mapping, Configuration $config) {
393
+        return $container->protect(function(array $mapping, Configuration $config) {
394 394
             return new XmlDriver($mapping['path'], $mapping['extension'] ?? XmlDriver::DEFAULT_FILE_EXTENSION);
395 395
         });
396 396
     }
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
      */
403 403
     private function getOrmMappingDriverChainDefinition(Container $container): callable
404 404
     {
405
-        return $container->protect(function (Configuration $config, array $mappings) use ($container) {
405
+        return $container->protect(function(Configuration $config, array $mappings) use ($container) {
406 406
             $chain = new MappingDriverChain();
407 407
             foreach ($mappings as $mapping) {
408 408
                 if (isset($mapping['alias'])) {
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
      */
426 426
     private function getOrmRepositoryFactoryDefinition(Container $container): callable
427 427
     {
428
-        return function () use ($container) {
428
+        return function() use ($container) {
429 429
             return new DefaultRepositoryFactory();
430 430
         };
431 431
     }
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
      */
438 438
     private function getOrmNamingStrategyDefinition(Container $container): callable
439 439
     {
440
-        return function () use ($container) {
440
+        return function() use ($container) {
441 441
             return new DefaultNamingStrategy();
442 442
         };
443 443
     }
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
      */
450 450
     private function getOrmQuoteStrategyDefinition(Container $container): callable
451 451
     {
452
-        return function () use ($container) {
452
+        return function() use ($container) {
453 453
             return new DefaultQuoteStrategy();
454 454
         };
455 455
     }
Please login to merge, or discard this patch.
src/ServiceProvider/DoctrineDbalServiceProvider.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     private function getDbConnectionRegistryDefintion(Container $container): callable
46 46
     {
47
-        return function ($container) {
47
+        return function($container) {
48 48
             return new DoctrineDbalConnectionRegistry($container);
49 49
         };
50 50
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     private function getDbDefinition(Container $container): callable
58 58
     {
59
-        return function () use ($container) {
59
+        return function() use ($container) {
60 60
             $dbs = $container['doctrine.dbal.dbs'];
61 61
 
62 62
             return $dbs[$container['doctrine.dbal.dbs.default']];
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     private function getDbApcuCacheFactoryDefinition(Container $container): callable
72 72
     {
73
-        return $container->protect(function (array $options) use ($container) {
73
+        return $container->protect(function(array $options) use ($container) {
74 74
             return new ApcuCache();
75 75
         });
76 76
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     private function getDbArrayCacheFactoryDefinition(Container $container): callable
84 84
     {
85
-        return $container->protect(function (array $options) use ($container) {
85
+        return $container->protect(function(array $options) use ($container) {
86 86
             return new ArrayCache();
87 87
         });
88 88
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     private function getDbConfigDefinition(Container $container): callable
96 96
     {
97
-        return function () use ($container) {
97
+        return function() use ($container) {
98 98
             $dbs = $container['doctrine.dbal.dbs.config'];
99 99
 
100 100
             return $dbs[$container['doctrine.dbal.dbs.default']];
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     private function getDbEventManagerDefinition(Container $container): callable
134 134
     {
135
-        return function () use ($container) {
135
+        return function() use ($container) {
136 136
             $dbs = $container['doctrine.dbal.dbs.event_manager'];
137 137
 
138 138
             return $dbs[$container['doctrine.dbal.dbs.default']];
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     private function getDbsDefinition(Container $container): callable
148 148
     {
149
-        return function () use ($container) {
149
+        return function() use ($container) {
150 150
             $container['doctrine.dbal.dbs.options.initializer']();
151 151
 
152 152
             $dbs = new Container();
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                     $manager = $container['doctrine.dbal.dbs.event_manager'][$name];
160 160
                 }
161 161
 
162
-                $dbs[$name] = function () use ($options, $config, $manager) {
162
+                $dbs[$name] = function() use ($options, $config, $manager) {
163 163
                     return DriverManager::getConnection($options['connection'], $config, $manager);
164 164
                 };
165 165
             }
@@ -175,14 +175,14 @@  discard block
 block discarded – undo
175 175
      */
176 176
     private function getDbsConfigDefinition(Container $container): callable
177 177
     {
178
-        return function () use ($container) {
178
+        return function() use ($container) {
179 179
             $container['doctrine.dbal.dbs.options.initializer']();
180 180
 
181 181
             $addLogger = $container['logger'] ?? false;
182 182
 
183 183
             $configs = new Container();
184 184
             foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) {
185
-                $configs[$name] = function () use ($addLogger, $container, $name, $options) {
185
+                $configs[$name] = function() use ($addLogger, $container, $name, $options) {
186 186
                     $configOptions = $options['configuration'];
187 187
 
188 188
                     $config = new Configuration();
@@ -227,12 +227,12 @@  discard block
 block discarded – undo
227 227
      */
228 228
     private function getDbsEventManagerDefinition(Container $container): callable
229 229
     {
230
-        return function () use ($container) {
230
+        return function() use ($container) {
231 231
             $container['doctrine.dbal.dbs.options.initializer']();
232 232
 
233 233
             $managers = new Container();
234 234
             foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) {
235
-                $managers[$name] = function () {
235
+                $managers[$name] = function() {
236 236
                     return new EventManager();
237 237
                 };
238 238
             }
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     private function getDbsOptionsInitializerDefinition(Container $container): callable
250 250
     {
251
-        return $container->protect(function () use ($container) {
251
+        return $container->protect(function() use ($container) {
252 252
             static $initialized = false;
253 253
 
254 254
             if ($initialized) {
Please login to merge, or discard this patch.