Test Setup Failed
Push — master ( e168c9...58337e )
by Dominik
03:03 queued 31s
created
src/DoctrineOrmServiceProvider.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     private function getOrmEmsOptionsInitializerDefinition(Container $container): \Closure
107 107
     {
108
-        return $container->protect(function () use ($container) {
108
+        return $container->protect(function() use ($container) {
109 109
             static $initialized = false;
110 110
 
111 111
             if ($initialized) {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     private function getOrmEmsDefinition(Container $container): \Closure
142 142
     {
143
-        return function () use ($container) {
143
+        return function() use ($container) {
144 144
             $container['orm.ems.options.initializer']();
145 145
 
146 146
             $ems = new Container();
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                     $config = $container['orm.ems.config'][$name];
153 153
                 }
154 154
 
155
-                $ems[$name] = function () use ($container, $options, $config) {
155
+                $ems[$name] = function() use ($container, $options, $config) {
156 156
                     return EntityManager::create(
157 157
                         $container['dbs'][$options['connection']],
158 158
                         $config,
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     private function getOrmEmsConfigServiceProvider(Container $container): \Closure
174 174
     {
175
-        return function () use ($container) {
175
+        return function() use ($container) {
176 176
             $container['orm.ems.options.initializer']();
177 177
 
178 178
             $configs = new Container();
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         string $name,
197 197
         array $options
198 198
     ): \Closure {
199
-        return function () use ($container, $name, $options) {
199
+        return function() use ($container, $name, $options) {
200 200
             $config = new Configuration();
201 201
 
202 202
             $config->setProxyDir($container['orm.proxies_dir']);
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     private function getOrmMappingDriverChainDefinition(Container $container): \Closure
250 250
     {
251
-        return $container->protect(function (string $name, Configuration $config, array $mappings) use ($container) {
251
+        return $container->protect(function(string $name, Configuration $config, array $mappings) use ($container) {
252 252
             $container['orm.ems.options.initializer']();
253 253
 
254 254
             if (null === $name) {
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      */
295 295
     private function getOrmMappingDriverChainFactoryDefinition(Container $container): \Closure
296 296
     {
297
-        return $container->protect(function () use ($container) {
297
+        return $container->protect(function() use ($container) {
298 298
             return new MappingDriverChain();
299 299
         });
300 300
     }
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      */
307 307
     private function getOrmMappingDriverFactoryAnnotation(Container $container): \Closure
308 308
     {
309
-        return $container->protect(function (array $entity, Configuration $config) {
309
+        return $container->protect(function(array $entity, Configuration $config) {
310 310
             $useSimpleAnnotationReader = $entity['use_simple_annotation_reader'] ?? true;
311 311
 
312 312
             return $config->newDefaultAnnotationDriver(
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
      */
324 324
     private function getOrmMappingDriverFactoryYaml(Container $container): \Closure
325 325
     {
326
-        return $container->protect(function (array $entity, Configuration $config) {
326
+        return $container->protect(function(array $entity, Configuration $config) {
327 327
             return new YamlDriver($entity['path']);
328 328
         });
329 329
     }
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
      */
336 336
     private function getOrmMappingDriverFactorySimpleYaml(Container $container): \Closure
337 337
     {
338
-        return $container->protect(function (array $entity, Configuration $config) {
338
+        return $container->protect(function(array $entity, Configuration $config) {
339 339
             return new SimplifiedYamlDriver([$entity['path'] => $entity['namespace']]);
340 340
         });
341 341
     }
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
      */
348 348
     private function getOrmMappingDriverFactoryXml(Container $container): \Closure
349 349
     {
350
-        return $container->protect(function (array $entity, Configuration $config) {
350
+        return $container->protect(function(array $entity, Configuration $config) {
351 351
             return new XmlDriver($entity['path']);
352 352
         });
353 353
     }
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
      */
360 360
     private function getOrmMappingDriverFactorySimpleXml(Container $container): \Closure
361 361
     {
362
-        return $container->protect(function (array $entity, Configuration $config) {
362
+        return $container->protect(function(array $entity, Configuration $config) {
363 363
             return new SimplifiedXmlDriver([$entity['path'] => $entity['namespace']]);
364 364
         });
365 365
     }
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
      */
372 372
     private function getOrmMappingDriverFactoryPhp(Container $container): \Closure
373 373
     {
374
-        return $container->protect(function (array $entity, Configuration $config) {
374
+        return $container->protect(function(array $entity, Configuration $config) {
375 375
             return new StaticPHPDriver($entity['path']);
376 376
         });
377 377
     }
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
      */
384 384
     private function getOrmCacheLocatorDefinition(Container $container): \Closure
385 385
     {
386
-        return $container->protect(function (string $name, string $cacheName, array $options) use ($container) {
386
+        return $container->protect(function(string $name, string $cacheName, array $options) use ($container) {
387 387
             $cacheNameKey = $cacheName.'_cache';
388 388
 
389 389
             if (!isset($options[$cacheNameKey])) {
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
      */
425 425
     private function getOrmCacheFactoryDefinition(Container $container): \Closure
426 426
     {
427
-        return $container->protect(function (string $driver, array $cacheOptions) use ($container) {
427
+        return $container->protect(function(string $driver, array $cacheOptions) use ($container) {
428 428
             $cacheFactoryKey = 'orm.cache.factory.'.$driver;
429 429
             if (!isset($container[$cacheFactoryKey])) {
430 430
                 throw new \RuntimeException(
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
      */
444 444
     private function getOrmCacheFactoryApcuDefinition(Container $container): \Closure
445 445
     {
446
-        return $container->protect(function (array $cacheOptions) use ($container) {
446
+        return $container->protect(function(array $cacheOptions) use ($container) {
447 447
             return new ApcuCache();
448 448
         });
449 449
     }
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
      */
456 456
     private function getOrmCacheFactoryArrayDefinition(Container $container): \Closure
457 457
     {
458
-        return $container->protect(function (array $cacheOptions) use ($container) {
458
+        return $container->protect(function(array $cacheOptions) use ($container) {
459 459
             return new ArrayCache();
460 460
         });
461 461
     }
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
      */
468 468
     private function getOrmCacheFactoryFilesystemDefinition(Container $container): \Closure
469 469
     {
470
-        return $container->protect(function (array $cacheOptions) {
470
+        return $container->protect(function(array $cacheOptions) {
471 471
             if (empty($cacheOptions['path'])) {
472 472
                 throw new \RuntimeException('FilesystemCache path not defined');
473 473
             }
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
      */
489 489
     private function getOrmCacheFactoryMemcacheDefinition(Container $container): \Closure
490 490
     {
491
-        return $container->protect(function (array $cacheOptions) use ($container) {
491
+        return $container->protect(function(array $cacheOptions) use ($container) {
492 492
             if (empty($cacheOptions['host']) || empty($cacheOptions['port'])) {
493 493
                 throw new \RuntimeException('Host and port options need to be specified for memcache cache');
494 494
             }
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
      */
511 511
     private function getOrmCacheFactoryMemcachedDefinition(Container $container): \Closure
512 512
     {
513
-        return $container->protect(function (array $cacheOptions) use ($container) {
513
+        return $container->protect(function(array $cacheOptions) use ($container) {
514 514
             if (empty($cacheOptions['host']) || empty($cacheOptions['port'])) {
515 515
                 throw new \RuntimeException('Host and port options need to be specified for memcached cache');
516 516
             }
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
      */
533 533
     private function getOrmCacheFactoryRedisDefinition(Container $container): \Closure
534 534
     {
535
-        return $container->protect(function (array $cacheOptions) use ($container) {
535
+        return $container->protect(function(array $cacheOptions) use ($container) {
536 536
             if (empty($cacheOptions['host']) || empty($cacheOptions['port'])) {
537 537
                 throw new \RuntimeException('Host and port options need to be specified for redis cache');
538 538
             }
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
      */
559 559
     private function getOrmCacheFactoryXCacheDefinition(Container $container): \Closure
560 560
     {
561
-        return $container->protect(function (array $cacheOptions) use ($container) {
561
+        return $container->protect(function(array $cacheOptions) use ($container) {
562 562
             return new XcacheCache();
563 563
         });
564 564
     }
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
      */
571 571
     private function getOrmNamingStrategyDefinition(Container $container): \Closure
572 572
     {
573
-        return function () use ($container) {
573
+        return function() use ($container) {
574 574
             return new DefaultNamingStrategy();
575 575
         };
576 576
     }
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
      */
583 583
     private function getOrmQuoteStrategyDefinition(Container $container): \Closure
584 584
     {
585
-        return function () use ($container) {
585
+        return function() use ($container) {
586 586
             return new DefaultQuoteStrategy();
587 587
         };
588 588
     }
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
      */
595 595
     private function getOrmEntityListenerResolverDefinition(Container $container): \Closure
596 596
     {
597
-        return function () use ($container) {
597
+        return function() use ($container) {
598 598
             return new DefaultEntityListenerResolver();
599 599
         };
600 600
     }
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
      */
607 607
     private function getOrmRepositoryFactoryDefinition(Container $container): \Closure
608 608
     {
609
-        return function () use ($container) {
609
+        return function() use ($container) {
610 610
             return new DefaultRepositoryFactory();
611 611
         };
612 612
     }
@@ -618,7 +618,7 @@  discard block
 block discarded – undo
618 618
      */
619 619
     private function getOrmSecondLevelCacheConfigurationDefinition(Container $container): \Closure
620 620
     {
621
-        return function () use ($container) {
621
+        return function() use ($container) {
622 622
             return new CacheConfiguration();
623 623
         };
624 624
     }
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
      */
631 631
     private function getOrmEmDefinition(Container $container): \Closure
632 632
     {
633
-        return function () use ($container) {
633
+        return function() use ($container) {
634 634
             $ems = $container['orm.ems'];
635 635
 
636 636
             return $ems[$container['orm.ems.default']];
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
      */
645 645
     private function getOrmEmConfigDefinition(Container $container): \Closure
646 646
     {
647
-        return function () use ($container) {
647
+        return function() use ($container) {
648 648
             $configs = $container['orm.ems.config'];
649 649
 
650 650
             return $configs[$container['orm.ems.default']];
Please login to merge, or discard this patch.