Test Setup Failed
Push — master ( 781818...decea1 )
by Dominik
07:28
created
src/ServiceProvider/DoctrineDbalServiceProvider.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -40,14 +40,14 @@  discard block
 block discarded – undo
40 40
 
41 41
     private function getDbConnectionRegistryDefintion(Container $container): callable
42 42
     {
43
-        return static function () use ($container) {
43
+        return static function() use ($container) {
44 44
             return new DoctrineDbalConnectionRegistry($container);
45 45
         };
46 46
     }
47 47
 
48 48
     private function getDbDefinition(Container $container): callable
49 49
     {
50
-        return static function () use ($container) {
50
+        return static function() use ($container) {
51 51
             $dbs = $container['doctrine.dbal.dbs'];
52 52
 
53 53
             return $dbs[$container['doctrine.dbal.dbs.default']];
@@ -56,21 +56,21 @@  discard block
 block discarded – undo
56 56
 
57 57
     private function getDbApcuCacheFactoryDefinition(Container $container): callable
58 58
     {
59
-        return $container->protect(static function () {
59
+        return $container->protect(static function() {
60 60
             return new ApcuCache();
61 61
         });
62 62
     }
63 63
 
64 64
     private function getDbArrayCacheFactoryDefinition(Container $container): callable
65 65
     {
66
-        return $container->protect(static function () {
66
+        return $container->protect(static function() {
67 67
             return new ArrayCache();
68 68
         });
69 69
     }
70 70
 
71 71
     private function getDbConfigDefinition(Container $container): callable
72 72
     {
73
-        return static function () use ($container) {
73
+        return static function() use ($container) {
74 74
             $dbs = $container['doctrine.dbal.dbs.config'];
75 75
 
76 76
             return $dbs[$container['doctrine.dbal.dbs.default']];
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
     private function getDbEventManagerDefinition(Container $container): callable
105 105
     {
106
-        return static function () use ($container) {
106
+        return static function() use ($container) {
107 107
             $dbs = $container['doctrine.dbal.dbs.event_manager'];
108 108
 
109 109
             return $dbs[$container['doctrine.dbal.dbs.default']];
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     private function getDbsDefinition(Container $container): callable
114 114
     {
115
-        return static function () use ($container) {
115
+        return static function() use ($container) {
116 116
             $container['doctrine.dbal.dbs.options.initializer']();
117 117
 
118 118
             $dbs = new Container();
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                     $manager = $container['doctrine.dbal.dbs.event_manager'][$name];
126 126
                 }
127 127
 
128
-                $dbs[$name] = static function () use ($options, $config, $manager) {
128
+                $dbs[$name] = static function() use ($options, $config, $manager) {
129 129
                     return DriverManager::getConnection($options['connection'], $config, $manager);
130 130
                 };
131 131
             }
@@ -136,14 +136,14 @@  discard block
 block discarded – undo
136 136
 
137 137
     private function getDbsConfigDefinition(Container $container): callable
138 138
     {
139
-        return function () use ($container) {
139
+        return function() use ($container) {
140 140
             $container['doctrine.dbal.dbs.options.initializer']();
141 141
 
142 142
             $addLogger = $container['logger'] ?? false;
143 143
 
144 144
             $configs = new Container();
145 145
             foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) {
146
-                $configs[$name] = function () use ($addLogger, $container, $options) {
146
+                $configs[$name] = function() use ($addLogger, $container, $options) {
147 147
                     $configOptions = $options['configuration'];
148 148
 
149 149
                     $config = new Configuration();
@@ -177,12 +177,12 @@  discard block
 block discarded – undo
177 177
 
178 178
     private function getDbsEventManagerDefinition(Container $container): callable
179 179
     {
180
-        return static function () use ($container) {
180
+        return static function() use ($container) {
181 181
             $container['doctrine.dbal.dbs.options.initializer']();
182 182
 
183 183
             $managers = new Container();
184 184
             foreach (array_keys($container['doctrine.dbal.dbs.options']) as $name) {
185
-                $managers[$name] = static function () {
185
+                $managers[$name] = static function() {
186 186
                     return new EventManager();
187 187
                 };
188 188
             }
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
     private function getDbsOptionsInitializerDefinition(Container $container): callable
195 195
     {
196
-        return $container->protect(static function () use ($container): void {
196
+        return $container->protect(static function() use ($container): void {
197 197
             static $initialized = false;
198 198
 
199 199
             if ($initialized) {
Please login to merge, or discard this patch.
src/ServiceProvider/DoctrineOrmServiceProvider.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     private function getOrmEmDefinition(Container $container): callable
70 70
     {
71
-        return static function () use ($container) {
71
+        return static function() use ($container) {
72 72
             $ems = $container['doctrine.orm.ems'];
73 73
 
74 74
             return $ems[$container['doctrine.orm.ems.default']];
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     private function getOrmEmConfigDefinition(Container $container): callable
79 79
     {
80
-        return static function () use ($container) {
80
+        return static function() use ($container) {
81 81
             $configs = $container['doctrine.orm.ems.config'];
82 82
 
83 83
             return $configs[$container['doctrine.orm.ems.default']];
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     private function getOrmEmFactory(Container $container): callable
118 118
     {
119 119
         return $container->protect(
120
-            static function (Connection $connection, Configuration $config, EventManager $eventManager) {
120
+            static function(Connection $connection, Configuration $config, EventManager $eventManager) {
121 121
                 return EntityManager::create($connection, $config, $eventManager);
122 122
             }
123 123
         );
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
     private function getOrmEmsDefinition(Container $container): callable
127 127
     {
128
-        return static function () use ($container) {
128
+        return static function() use ($container) {
129 129
             $container['doctrine.orm.ems.options.initializer']();
130 130
 
131 131
             $ems = new Container();
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                     $config = $container['doctrine.orm.ems.config'][$name];
137 137
                 }
138 138
 
139
-                $ems[$name] = static function () use ($container, $options, $config) {
139
+                $ems[$name] = static function() use ($container, $options, $config) {
140 140
                     return $container['doctrine.orm.em.factory'](
141 141
                         $container['doctrine.dbal.dbs'][$options['connection']],
142 142
                         $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();
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 
249 249
     private function getOrmEmsOptionsInitializerDefinition(Container $container): callable
250 250
     {
251
-        return $container->protect(static function () use ($container): void {
251
+        return $container->protect(static function() use ($container): void {
252 252
             static $initialized = false;
253 253
 
254 254
             if ($initialized) {
@@ -278,42 +278,42 @@  discard block
 block discarded – undo
278 278
 
279 279
     private function getOrmEntityListenerResolverDefinition(): callable
280 280
     {
281
-        return static function () {
281
+        return static function() {
282 282
             return new DefaultEntityListenerResolver();
283 283
         };
284 284
     }
285 285
 
286 286
     private function getOrmManagerRegistryDefintion(Container $container): callable
287 287
     {
288
-        return static function () use ($container) {
288
+        return static function() use ($container) {
289 289
             return new DoctrineOrmManagerRegistry($container);
290 290
         };
291 291
     }
292 292
 
293 293
     private function getOrmMappingDriverFactoryAnnotation(Container $container): callable
294 294
     {
295
-        return $container->protect(static function (array $mapping, Configuration $config) {
295
+        return $container->protect(static function(array $mapping, Configuration $config) {
296 296
             return $config->newDefaultAnnotationDriver((array) $mapping['path'], false);
297 297
         });
298 298
     }
299 299
 
300 300
     private function getOrmMappingDriverFactoryClassMap(Container $container): callable
301 301
     {
302
-        return $container->protect(static function (array $mapping) {
302
+        return $container->protect(static function(array $mapping) {
303 303
             return new ClassMapDriver($mapping['map']);
304 304
         });
305 305
     }
306 306
 
307 307
     private function getOrmMappingDriverFactoryPhp(Container $container): callable
308 308
     {
309
-        return $container->protect(static function (array $mapping) {
309
+        return $container->protect(static function(array $mapping) {
310 310
             return new PHPDriver($mapping['path']);
311 311
         });
312 312
     }
313 313
 
314 314
     private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
315 315
     {
316
-        return $container->protect(static function (array $mapping) {
316
+        return $container->protect(static function(array $mapping) {
317 317
             return new SimplifiedYamlDriver(
318 318
                 [$mapping['path'] => $mapping['namespace']],
319 319
                 $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
 
324 324
     private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
325 325
     {
326
-        return $container->protect(static function (array $mapping) {
326
+        return $container->protect(static function(array $mapping) {
327 327
             return new SimplifiedXmlDriver(
328 328
                 [$mapping['path'] => $mapping['namespace']],
329 329
                 $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
@@ -333,28 +333,28 @@  discard block
 block discarded – undo
333 333
 
334 334
     private function getOrmMappingDriverFactoryStaticPhp(Container $container): callable
335 335
     {
336
-        return $container->protect(static function (array $mapping) {
336
+        return $container->protect(static function(array $mapping) {
337 337
             return new StaticPHPDriver($mapping['path']);
338 338
         });
339 339
     }
340 340
 
341 341
     private function getOrmMappingDriverFactoryYaml(Container $container): callable
342 342
     {
343
-        return $container->protect(static function (array $mapping) {
343
+        return $container->protect(static function(array $mapping) {
344 344
             return new YamlDriver($mapping['path'], $mapping['extension'] ?? YamlDriver::DEFAULT_FILE_EXTENSION);
345 345
         });
346 346
     }
347 347
 
348 348
     private function getOrmMappingDriverFactoryXml(Container $container): callable
349 349
     {
350
-        return $container->protect(static function (array $mapping) {
350
+        return $container->protect(static function(array $mapping) {
351 351
             return new XmlDriver($mapping['path'], $mapping['extension'] ?? XmlDriver::DEFAULT_FILE_EXTENSION);
352 352
         });
353 353
     }
354 354
 
355 355
     private function getOrmMappingDriverChainDefinition(Container $container): callable
356 356
     {
357
-        return $container->protect(static function (Configuration $config, array $mappings) use ($container) {
357
+        return $container->protect(static function(Configuration $config, array $mappings) use ($container) {
358 358
             $chain = new MappingDriverChain();
359 359
             foreach ($mappings as $mapping) {
360 360
                 if (isset($mapping['alias'])) {
@@ -372,21 +372,21 @@  discard block
 block discarded – undo
372 372
 
373 373
     private function getOrmRepositoryFactoryDefinition(): callable
374 374
     {
375
-        return static function () {
375
+        return static function() {
376 376
             return new DefaultRepositoryFactory();
377 377
         };
378 378
     }
379 379
 
380 380
     private function getOrmNamingStrategyDefinition(): callable
381 381
     {
382
-        return static function () {
382
+        return static function() {
383 383
             return new DefaultNamingStrategy();
384 384
         };
385 385
     }
386 386
 
387 387
     private function getOrmQuoteStrategyDefinition(): callable
388 388
     {
389
-        return static function () {
389
+        return static function() {
390 390
             return new DefaultQuoteStrategy();
391 391
         };
392 392
     }
Please login to merge, or discard this patch.