Passed
Push — master ( 1b91a7...0ef39f )
by Dominik
02:15
created
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.
src/ServiceProvider/DoctrineOrmServiceProvider.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     private function getOrmEmDefinition(Container $container): callable
72 72
     {
73
-        return function () use ($container) {
73
+        return function() use ($container) {
74 74
             $ems = $container['doctrine.orm.ems'];
75 75
 
76 76
             return $ems[$container['doctrine.orm.ems.default']];
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     private function getOrmEmConfigDefinition(Container $container): callable
86 86
     {
87
-        return function () use ($container) {
87
+        return function() use ($container) {
88 88
             $configs = $container['doctrine.orm.ems.config'];
89 89
 
90 90
             return $configs[$container['doctrine.orm.ems.default']];
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      */
129 129
     private function getOrmEmsDefinition(Container $container): callable
130 130
     {
131
-        return function () use ($container) {
131
+        return function() use ($container) {
132 132
             $container['doctrine.orm.ems.options.initializer']();
133 133
 
134 134
             $ems = new Container();
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
                     $config = $container['doctrine.orm.ems.config'][$name];
140 140
                 }
141 141
 
142
-                $ems[$name] = function () use ($container, $options, $config) {
142
+                $ems[$name] = function() use ($container, $options, $config) {
143 143
                     return EntityManager::create(
144 144
                         $container['doctrine.dbal.dbs'][$options['connection']],
145 145
                         $config,
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      */
160 160
     private function getOrmEmsConfigServiceProvider(Container $container): callable
161 161
     {
162
-        return function () use ($container) {
162
+        return function() use ($container) {
163 163
             $container['doctrine.orm.ems.options.initializer']();
164 164
 
165 165
             $configs = new Container();
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
      */
273 273
     private function getOrmEmsOptionsInitializerDefinition(Container $container): callable
274 274
     {
275
-        return $container->protect(function () use ($container) {
275
+        return $container->protect(function() use ($container) {
276 276
             static $initialized = false;
277 277
 
278 278
             if ($initialized) {
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
      */
309 309
     private function getOrmEntityListenerResolverDefinition(Container $container): callable
310 310
     {
311
-        return function () use ($container) {
311
+        return function() use ($container) {
312 312
             return new DefaultEntityListenerResolver();
313 313
         };
314 314
     }
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
      */
321 321
     private function getOrmManagerRegistryDefintion(Container $container): callable
322 322
     {
323
-        return function ($container) {
323
+        return function($container) {
324 324
             return new DoctrineOrmManagerRegistry($container);
325 325
         };
326 326
     }
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      */
333 333
     private function getOrmMappingDriverFactoryAnnotation(Container $container): callable
334 334
     {
335
-        return $container->protect(function (array $mapping, Configuration $config) {
335
+        return $container->protect(function(array $mapping, Configuration $config) {
336 336
             return $config->newDefaultAnnotationDriver((array) $mapping['path'], false);
337 337
         });
338 338
     }
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
      */
345 345
     private function getOrmMappingDriverFactoryClassMap(Container $container): callable
346 346
     {
347
-        return $container->protect(function (array $mapping, Configuration $config) {
347
+        return $container->protect(function(array $mapping, Configuration $config) {
348 348
             return new ClassMapDriver($mapping['map']);
349 349
         });
350 350
     }
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
      */
357 357
     private function getOrmMappingDriverFactoryPhp(Container $container): callable
358 358
     {
359
-        return $container->protect(function (array $mapping, Configuration $config) {
359
+        return $container->protect(function(array $mapping, Configuration $config) {
360 360
             return new PHPDriver($mapping['path']);
361 361
         });
362 362
     }
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
      */
369 369
     private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
370 370
     {
371
-        return $container->protect(function (array $mapping, Configuration $config) {
371
+        return $container->protect(function(array $mapping, Configuration $config) {
372 372
             return new SimplifiedYamlDriver(
373 373
                 [$mapping['path'] => $mapping['namespace']],
374 374
                 $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
      */
384 384
     private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
385 385
     {
386
-        return $container->protect(function (array $mapping, Configuration $config) {
386
+        return $container->protect(function(array $mapping, Configuration $config) {
387 387
             return new SimplifiedXmlDriver(
388 388
                 [$mapping['path'] => $mapping['namespace']],
389 389
                 $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
      */
399 399
     private function getOrmMappingDriverFactoryStaticPhp(Container $container): callable
400 400
     {
401
-        return $container->protect(function (array $mapping, Configuration $config) {
401
+        return $container->protect(function(array $mapping, Configuration $config) {
402 402
             return new StaticPHPDriver($mapping['path']);
403 403
         });
404 404
     }
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
      */
411 411
     private function getOrmMappingDriverFactoryYaml(Container $container): callable
412 412
     {
413
-        return $container->protect(function (array $mapping, Configuration $config) {
413
+        return $container->protect(function(array $mapping, Configuration $config) {
414 414
             return new YamlDriver($mapping['path'], $mapping['extension'] ?? YamlDriver::DEFAULT_FILE_EXTENSION);
415 415
         });
416 416
     }
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
      */
423 423
     private function getOrmMappingDriverFactoryXml(Container $container): callable
424 424
     {
425
-        return $container->protect(function (array $mapping, Configuration $config) {
425
+        return $container->protect(function(array $mapping, Configuration $config) {
426 426
             return new XmlDriver($mapping['path'], $mapping['extension'] ?? XmlDriver::DEFAULT_FILE_EXTENSION);
427 427
         });
428 428
     }
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
      */
435 435
     private function getOrmMappingDriverChainDefinition(Container $container): callable
436 436
     {
437
-        return $container->protect(function (Configuration $config, array $mappings) use ($container) {
437
+        return $container->protect(function(Configuration $config, array $mappings) use ($container) {
438 438
             $chain = new MappingDriverChain();
439 439
             foreach ($mappings as $mapping) {
440 440
                 if (isset($mapping['alias'])) {
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
      */
458 458
     private function getOrmRepositoryFactoryDefinition(Container $container): callable
459 459
     {
460
-        return function () use ($container) {
460
+        return function() use ($container) {
461 461
             return new DefaultRepositoryFactory();
462 462
         };
463 463
     }
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
      */
470 470
     private function getOrmNamingStrategyDefinition(Container $container): callable
471 471
     {
472
-        return function () use ($container) {
472
+        return function() use ($container) {
473 473
             return new DefaultNamingStrategy();
474 474
         };
475 475
     }
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
      */
482 482
     private function getOrmQuoteStrategyDefinition(Container $container): callable
483 483
     {
484
-        return function () use ($container) {
484
+        return function() use ($container) {
485 485
             return new DefaultQuoteStrategy();
486 486
         };
487 487
     }
Please login to merge, or discard this patch.