Passed
Push — master ( 385f25...bd0fa1 )
by Dominik
02:12
created
src/DoctrineOrmServiceProvider.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     private function getOrmEmDefinition(Container $container): callable
68 68
     {
69
-        return function () use ($container) {
69
+        return function() use ($container) {
70 70
             $ems = $container['doctrine.orm.ems'];
71 71
 
72 72
             return $ems[$container['doctrine.orm.ems.default']];
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     private function getOrmApcuCacheFactoryDefinition(Container $container): callable
82 82
     {
83
-        return $container->factory(function () use ($container) {
83
+        return $container->factory(function() use ($container) {
84 84
             return new ApcuCache();
85 85
         });
86 86
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     private function getOrmArrayCacheFactoryDefinition(Container $container): callable
94 94
     {
95
-        return $container->factory(function () use ($container) {
95
+        return $container->factory(function() use ($container) {
96 96
             return new ArrayCache();
97 97
         });
98 98
     }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     private function getOrmEmConfigDefinition(Container $container): callable
106 106
     {
107
-        return function () use ($container) {
107
+        return function() use ($container) {
108 108
             $configs = $container['doctrine.orm.ems.config'];
109 109
 
110 110
             return $configs[$container['doctrine.orm.ems.default']];
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     private function getOrmEmsDefinition(Container $container): callable
150 150
     {
151
-        return function () use ($container) {
151
+        return function() use ($container) {
152 152
             $container['doctrine.orm.ems.options.initializer']();
153 153
 
154 154
             $ems = new Container();
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                     $config = $container['doctrine.orm.ems.config'][$name];
161 161
                 }
162 162
 
163
-                $ems[$name] = function () use ($container, $options, $config) {
163
+                $ems[$name] = function() use ($container, $options, $config) {
164 164
                     return EntityManager::create(
165 165
                         $container['doctrine.dbal.dbs'][$options['connection']],
166 166
                         $config,
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     private function getOrmEmsConfigServiceProvider(Container $container): callable
182 182
     {
183
-        return function () use ($container) {
183
+        return function() use ($container) {
184 184
             $container['doctrine.orm.ems.options.initializer']();
185 185
 
186 186
             $configs = new Container();
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      */
281 281
     private function getOrmEmsOptionsInitializerDefinition(Container $container): callable
282 282
     {
283
-        return $container->protect(function () use ($container) {
283
+        return $container->protect(function() use ($container) {
284 284
             static $initialized = false;
285 285
 
286 286
             if ($initialized) {
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
      */
317 317
     private function getOrmEntityListenerResolverDefinition(Container $container): callable
318 318
     {
319
-        return function () use ($container) {
319
+        return function() use ($container) {
320 320
             return new DefaultEntityListenerResolver();
321 321
         };
322 322
     }
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
      */
329 329
     private function getOrmManagerRegistryDefintion(Container $container): callable
330 330
     {
331
-        return function ($container) {
331
+        return function($container) {
332 332
             return new DoctrineOrmManagerRegistry($container);
333 333
         };
334 334
     }
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
      */
341 341
     private function getOrmMappingDriverFactoryAnnotation(Container $container): callable
342 342
     {
343
-        return $container->protect(function (array $mapping, Configuration $config) {
343
+        return $container->protect(function(array $mapping, Configuration $config) {
344 344
             return $config->newDefaultAnnotationDriver((array) $mapping['path'], false);
345 345
         });
346 346
     }
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
      */
353 353
     private function getOrmMappingDriverFactoryStaticPhp(Container $container): callable
354 354
     {
355
-        return $container->protect(function (array $mapping, Configuration $config) {
355
+        return $container->protect(function(array $mapping, Configuration $config) {
356 356
             return new StaticPHPDriver($mapping['path']);
357 357
         });
358 358
     }
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
      */
365 365
     private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
366 366
     {
367
-        return $container->protect(function (array $mapping, Configuration $config) {
367
+        return $container->protect(function(array $mapping, Configuration $config) {
368 368
             return new SimplifiedYamlDriver(
369 369
                 [$mapping['path'] => $mapping['namespace']],
370 370
                 $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
      */
380 380
     private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
381 381
     {
382
-        return $container->protect(function (array $mapping, Configuration $config) {
382
+        return $container->protect(function(array $mapping, Configuration $config) {
383 383
             return new SimplifiedXmlDriver(
384 384
                 [$mapping['path'] => $mapping['namespace']],
385 385
                 $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
      */
395 395
     private function getOrmMappingDriverFactoryYaml(Container $container): callable
396 396
     {
397
-        return $container->protect(function (array $mapping, Configuration $config) {
397
+        return $container->protect(function(array $mapping, Configuration $config) {
398 398
             return new YamlDriver($mapping['path'], $mapping['extension'] ?? YamlDriver::DEFAULT_FILE_EXTENSION);
399 399
         });
400 400
     }
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
      */
407 407
     private function getOrmMappingDriverFactoryXml(Container $container): callable
408 408
     {
409
-        return $container->protect(function (array $mapping, Configuration $config) {
409
+        return $container->protect(function(array $mapping, Configuration $config) {
410 410
             return new XmlDriver($mapping['path'], $mapping['extension'] ?? XmlDriver::DEFAULT_FILE_EXTENSION);
411 411
         });
412 412
     }
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
      */
419 419
     private function getOrmMappingDriverChainDefinition(Container $container): callable
420 420
     {
421
-        return $container->protect(function (string $name, Configuration $config, array $mappings) use ($container) {
421
+        return $container->protect(function(string $name, Configuration $config, array $mappings) use ($container) {
422 422
             $chain = new MappingDriverChain();
423 423
             foreach ($mappings as $mapping) {
424 424
                 if (isset($mapping['alias'])) {
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
      */
442 442
     private function getOrmRepositoryFactoryDefinition(Container $container): callable
443 443
     {
444
-        return function () use ($container) {
444
+        return function() use ($container) {
445 445
             return new DefaultRepositoryFactory();
446 446
         };
447 447
     }
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
      */
454 454
     private function getOrmNamingStrategyDefinition(Container $container): callable
455 455
     {
456
-        return function () use ($container) {
456
+        return function() use ($container) {
457 457
             return new DefaultNamingStrategy();
458 458
         };
459 459
     }
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
      */
466 466
     private function getOrmQuoteStrategyDefinition(Container $container): callable
467 467
     {
468
-        return function () use ($container) {
468
+        return function() use ($container) {
469 469
             return new DefaultQuoteStrategy();
470 470
         };
471 471
     }
Please login to merge, or discard this patch.