Completed
Push — master ( 9f05af...72dd80 )
by Dominik
29:48 queued 19:46
created
src/MonologServiceProvider.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @param Container $container
38 38
      *
39
-     * @return callable
39
+     * @return \Closure
40 40
      */
41 41
     private function getLoggerDefinition(Container $container): callable
42 42
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * @param Container $container
50 50
      *
51
-     * @return callable
51
+     * @return \Closure
52 52
      */
53 53
     private function getMonologDefinition(Container $container): callable
54 54
     {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     /**
64 64
      * @param Container $container
65 65
      *
66
-     * @return callable
66
+     * @return \Closure
67 67
      */
68 68
     private function getMonologFormatterDefinition(Container $container): callable
69 69
     {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * @param Container $container
77 77
      *
78
-     * @return callable
78
+     * @return \Closure
79 79
      */
80 80
     private function getMonologHandlersDefinition(Container $container): callable
81 81
     {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * @param Container $container
89 89
      *
90
-     * @return callable
90
+     * @return \Closure
91 91
      */
92 92
     private function getMonologDefaultHandlerDefinition(Container $container): callable
93 93
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     private function getLoggerDefinition(Container $container): callable
42 42
     {
43
-        return function () use ($container) {
43
+        return function() use ($container) {
44 44
             return $container['monolog'];
45 45
         };
46 46
     }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     private function getMonologDefinition(Container $container): callable
54 54
     {
55
-        return function ($container) {
55
+        return function($container) {
56 56
             $log = new Logger($container['monolog.name']);
57 57
             $log->pushHandler(new GroupHandler($container['monolog.handlers']));
58 58
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     private function getMonologFormatterDefinition(Container $container): callable
69 69
     {
70
-        return function () {
70
+        return function() {
71 71
             return new LineFormatter();
72 72
         };
73 73
     }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     private function getMonologHandlersDefinition(Container $container): callable
81 81
     {
82
-        return function () use ($container) {
82
+        return function() use ($container) {
83 83
             return [$container['monolog.default_handler']];
84 84
         };
85 85
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     private function getMonologDefaultHandlerDefinition(Container $container): callable
93 93
     {
94
-        return function () use ($container) {
94
+        return function() use ($container) {
95 95
             $handler = new StreamHandler(
96 96
                 $container['monolog.logfile'],
97 97
                 $container['monolog.level'],
Please login to merge, or discard this patch.
src/DoctrineMongoServiceProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     private function getMongoDbsOptionsInitializerDefinition(Container $container): callable
51 51
     {
52
-        return $container->protect(function () use ($container) {
52
+        return $container->protect(function() use ($container) {
53 53
             static $initialized = false;
54 54
 
55 55
             if ($initialized) {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     private function getMongoDbsDefinition(Container $container): callable
86 86
     {
87
-        return function () use ($container) {
87
+        return function() use ($container) {
88 88
             $container['doctrine.mongo.dbs.options.initializer']();
89 89
 
90 90
             $mongodbs = new Container();
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                     $manager = $container['doctrine.mongo.dbs.event_manager'][$name];
99 99
                 }
100 100
 
101
-                $mongodbs[$name] = function () use ($options, $config, $manager) {
101
+                $mongodbs[$name] = function() use ($options, $config, $manager) {
102 102
                     return new Connection($options['server'], $options['options'], $config, $manager);
103 103
                 };
104 104
             }
@@ -114,14 +114,14 @@  discard block
 block discarded – undo
114 114
      */
115 115
     private function getMongoDbsConfigDefinition(Container $container): callable
116 116
     {
117
-        return function () use ($container) {
117
+        return function() use ($container) {
118 118
             $container['doctrine.mongo.dbs.options.initializer']();
119 119
 
120 120
             $addLogger = $container['logger'] ?? false;
121 121
 
122 122
             $configs = new Container();
123 123
             foreach ($container['doctrine.mongo.dbs.options'] as $name => $options) {
124
-                $configs[$name] = function () use ($addLogger, $container) {
124
+                $configs[$name] = function() use ($addLogger, $container) {
125 125
                     $config = new Configuration();
126 126
                     if ($addLogger) {
127 127
                         $logger = new DoctrineMongoLogger(
@@ -147,12 +147,12 @@  discard block
 block discarded – undo
147 147
      */
148 148
     private function getMongoDbsEventManagerDefinition(Container $container): callable
149 149
     {
150
-        return function () use ($container) {
150
+        return function() use ($container) {
151 151
             $container['doctrine.mongo.dbs.options.initializer']();
152 152
 
153 153
             $managers = new Container();
154 154
             foreach ($container['doctrine.mongo.dbs.options'] as $name => $options) {
155
-                $managers[$name] = function () {
155
+                $managers[$name] = function() {
156 156
                     return new EventManager();
157 157
                 };
158 158
             }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      */
168 168
     private function getMongoDbDefinition(Container $container): callable
169 169
     {
170
-        return function () use ($container) {
170
+        return function() use ($container) {
171 171
             $dbs = $container['doctrine.mongo.dbs'];
172 172
 
173 173
             return $dbs[$container['doctrine.mongo.dbs.default']];
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     private function getMongoDbConfigDefinition(Container $container): callable
182 182
     {
183
-        return function () use ($container) {
183
+        return function() use ($container) {
184 184
             $dbs = $container['doctrine.mongo.dbs.config'];
185 185
 
186 186
             return $dbs[$container['doctrine.mongo.dbs.default']];
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      */
194 194
     private function getMongoDbEventManagerDefinition(Container $container): callable
195 195
     {
196
-        return function () use ($container) {
196
+        return function() use ($container) {
197 197
             $dbs = $container['doctrine.mongo.dbs.event_manager'];
198 198
 
199 199
             return $dbs[$container['doctrine.mongo.dbs.default']];
Please login to merge, or discard this patch.
src/Logger/DoctrineMongoLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             $query['data'] = '**'.$query['num'].' item(s)**';
50 50
         }
51 51
 
52
-        array_walk_recursive($query, function (&$value) {
52
+        array_walk_recursive($query, function(&$value) {
53 53
             $value = $this->flatValue($value);
54 54
         });
55 55
 
Please login to merge, or discard this patch.
src/DoctrineOrmServiceProvider.php 2 patches
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * @param Container $container
123 123
      *
124
-     * @return callable
124
+     * @return \Closure
125 125
      */
126 126
     private function getOrmEmsDefinition(Container $container): callable
127 127
     {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     /**
154 154
      * @param Container $container
155 155
      *
156
-     * @return callable
156
+     * @return \Closure
157 157
      */
158 158
     private function getOrmEmsConfigServiceProvider(Container $container): callable
159 159
     {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      * @param string    $name
175 175
      * @param array     $options
176 176
      *
177
-     * @return callable
177
+     * @return \Closure
178 178
      */
179 179
     private function getOrmEmConfigByNameAndOptionsDefinition(
180 180
         Container $container,
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
     /**
364 364
      * @param Container $container
365 365
      *
366
-     * @return callable
366
+     * @return \Closure
367 367
      */
368 368
     private function getOrmNamingStrategyDefinition(Container $container): callable
369 369
     {
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     /**
376 376
      * @param Container $container
377 377
      *
378
-     * @return callable
378
+     * @return \Closure
379 379
      */
380 380
     private function getOrmQuoteStrategyDefinition(Container $container): callable
381 381
     {
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
     /**
388 388
      * @param Container $container
389 389
      *
390
-     * @return callable
390
+     * @return \Closure
391 391
      */
392 392
     private function getOrmEntityListenerResolverDefinition(Container $container): callable
393 393
     {
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
     /**
400 400
      * @param Container $container
401 401
      *
402
-     * @return callable
402
+     * @return \Closure
403 403
      */
404 404
     private function getOrmRepositoryFactoryDefinition(Container $container): callable
405 405
     {
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
     /**
412 412
      * @param Container $container
413 413
      *
414
-     * @return callable
414
+     * @return \Closure
415 415
      */
416 416
     private function getOrmSecondLevelCacheConfigurationDefinition(Container $container): callable
417 417
     {
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
     /**
424 424
      * @param Container $container
425 425
      *
426
-     * @return callable
426
+     * @return \Closure
427 427
      */
428 428
     private function getOrmEmDefinition(Container $container): callable
429 429
     {
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
     /**
438 438
      * @param Container $container
439 439
      *
440
-     * @return callable
440
+     * @return \Closure
441 441
      */
442 442
     private function getOrmEmConfigDefinition(Container $container): callable
443 443
     {
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
     /**
452 452
      * @param Container $container
453 453
      *
454
-     * @return callable
454
+     * @return \Closure
455 455
      */
456 456
     private function getOrmManagerRegistryDefintion(Container $container): callable
457 457
     {
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     private function getOrmEmsOptionsInitializerDefinition(Container $container): callable
95 95
     {
96
-        return $container->protect(function () use ($container) {
96
+        return $container->protect(function() use ($container) {
97 97
             static $initialized = false;
98 98
 
99 99
             if ($initialized) {
@@ -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();
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                     $config = $container['doctrine.orm.ems.config'][$name];
141 141
                 }
142 142
 
143
-                $ems[$name] = function () use ($container, $options, $config) {
143
+                $ems[$name] = function() use ($container, $options, $config) {
144 144
                     return EntityManager::create(
145 145
                         $container['doctrine.dbal.dbs'][$options['connection']],
146 146
                         $config,
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     private function getOrmEmsConfigServiceProvider(Container $container): callable
162 162
     {
163
-        return function () use ($container) {
163
+        return function() use ($container) {
164 164
             $container['doctrine.orm.ems.options.initializer']();
165 165
 
166 166
             $configs = new Container();
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         string $name,
185 185
         array $options
186 186
     ): callable {
187
-        return function () use ($container, $name, $options) {
187
+        return function() use ($container, $name, $options) {
188 188
             $config = new Configuration();
189 189
 
190 190
             $config->setProxyDir($container['doctrine.orm.proxies_dir']);
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      */
245 245
     private function getOrmMappingDriverChainDefinition(Container $container): callable
246 246
     {
247
-        return $container->protect(function (string $name, Configuration $config, array $mappings) use ($container) {
247
+        return $container->protect(function(string $name, Configuration $config, array $mappings) use ($container) {
248 248
             $container['doctrine.orm.ems.options.initializer']();
249 249
 
250 250
             /** @var MappingDriverChain $chain */
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
      */
282 282
     private function getOrmMappingDriverChainFactoryDefinition(Container $container): callable
283 283
     {
284
-        return $container->protect(function () use ($container) {
284
+        return $container->protect(function() use ($container) {
285 285
             return new MappingDriverChain();
286 286
         });
287 287
     }
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
      */
294 294
     private function getOrmMappingDriverFactoryAnnotation(Container $container): callable
295 295
     {
296
-        return $container->protect(function (array $mapping, Configuration $config) {
296
+        return $container->protect(function(array $mapping, Configuration $config) {
297 297
             $useSimpleAnnotationReader = $mapping['use_simple_annotation_reader'] ?? true;
298 298
 
299 299
             return $config->newDefaultAnnotationDriver(
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      */
311 311
     private function getOrmMappingDriverFactoryYaml(Container $container): callable
312 312
     {
313
-        return $container->protect(function (array $mapping, Configuration $config) {
313
+        return $container->protect(function(array $mapping, Configuration $config) {
314 314
             return new YamlDriver($mapping['path'], $mapping['extension'] ?? YamlDriver::DEFAULT_FILE_EXTENSION);
315 315
         });
316 316
     }
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
      */
323 323
     private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
324 324
     {
325
-        return $container->protect(function (array $mapping, Configuration $config) {
325
+        return $container->protect(function(array $mapping, Configuration $config) {
326 326
             return new SimplifiedYamlDriver(
327 327
                 [$mapping['path'] => $mapping['namespace']],
328 328
                 $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      */
338 338
     private function getOrmMappingDriverFactoryXml(Container $container): callable
339 339
     {
340
-        return $container->protect(function (array $mapping, Configuration $config) {
340
+        return $container->protect(function(array $mapping, Configuration $config) {
341 341
             return new XmlDriver($mapping['path'], $mapping['extension'] ?? XmlDriver::DEFAULT_FILE_EXTENSION);
342 342
         });
343 343
     }
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
      */
350 350
     private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
351 351
     {
352
-        return $container->protect(function (array $mapping, Configuration $config) {
352
+        return $container->protect(function(array $mapping, Configuration $config) {
353 353
             return new SimplifiedXmlDriver(
354 354
                 [$mapping['path'] => $mapping['namespace']],
355 355
                 $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
      */
365 365
     private function getOrmMappingDriverFactoryPhp(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 StaticPHPDriver($mapping['path']);
369 369
         });
370 370
     }
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      */
377 377
     private function getOrmNamingStrategyDefinition(Container $container): callable
378 378
     {
379
-        return function () use ($container) {
379
+        return function() use ($container) {
380 380
             return new DefaultNamingStrategy();
381 381
         };
382 382
     }
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
      */
389 389
     private function getOrmQuoteStrategyDefinition(Container $container): callable
390 390
     {
391
-        return function () use ($container) {
391
+        return function() use ($container) {
392 392
             return new DefaultQuoteStrategy();
393 393
         };
394 394
     }
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
      */
401 401
     private function getOrmEntityListenerResolverDefinition(Container $container): callable
402 402
     {
403
-        return function () use ($container) {
403
+        return function() use ($container) {
404 404
             return new DefaultEntityListenerResolver();
405 405
         };
406 406
     }
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
      */
413 413
     private function getOrmRepositoryFactoryDefinition(Container $container): callable
414 414
     {
415
-        return function () use ($container) {
415
+        return function() use ($container) {
416 416
             return new DefaultRepositoryFactory();
417 417
         };
418 418
     }
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
      */
425 425
     private function getOrmSecondLevelCacheConfigurationDefinition(Container $container): callable
426 426
     {
427
-        return function () use ($container) {
427
+        return function() use ($container) {
428 428
             $regionsCacheConfiguration = new RegionsConfiguration();
429 429
             $factory = new DefaultCacheFactory(
430 430
                 $regionsCacheConfiguration,
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
      */
451 451
     private function getOrmEmDefinition(Container $container): callable
452 452
     {
453
-        return function () use ($container) {
453
+        return function() use ($container) {
454 454
             $ems = $container['doctrine.orm.ems'];
455 455
 
456 456
             return $ems[$container['doctrine.orm.ems.default']];
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
      */
465 465
     private function getOrmEmConfigDefinition(Container $container): callable
466 466
     {
467
-        return function () use ($container) {
467
+        return function() use ($container) {
468 468
             $configs = $container['doctrine.orm.ems.config'];
469 469
 
470 470
             return $configs[$container['doctrine.orm.ems.default']];
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
      */
479 479
     private function getOrmManagerRegistryDefintion(Container $container): callable
480 480
     {
481
-        return function ($container) {
481
+        return function($container) {
482 482
             return new DoctrineOrmManagerRegistry($container);
483 483
         };
484 484
     }
Please login to merge, or discard this patch.
src/DoctrineDbalServiceProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     private function getDbsOptionsInitializerDefinition(Container $container): callable
62 62
     {
63
-        return $container->protect(function () use ($container) {
63
+        return $container->protect(function() use ($container) {
64 64
             static $initialized = false;
65 65
 
66 66
             if ($initialized) {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     private function getDbsDefinition(Container $container): callable
97 97
     {
98
-        return function () use ($container) {
98
+        return function() use ($container) {
99 99
             $container['doctrine.dbal.dbs.options.initializer']();
100 100
 
101 101
             $dbs = new Container();
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                     $manager = $container['doctrine.dbal.dbs.event_manager'][$name];
110 110
                 }
111 111
 
112
-                $dbs[$name] = function () use ($options, $config, $manager) {
112
+                $dbs[$name] = function() use ($options, $config, $manager) {
113 113
                     return DriverManager::getConnection($options['connection'], $config, $manager);
114 114
                 };
115 115
             }
@@ -125,14 +125,14 @@  discard block
 block discarded – undo
125 125
      */
126 126
     private function getDbsConfigDefinition(Container $container): callable
127 127
     {
128
-        return function () use ($container) {
128
+        return function() use ($container) {
129 129
             $container['doctrine.dbal.dbs.options.initializer']();
130 130
 
131 131
             $addLogger = $container['logger'] ?? false;
132 132
 
133 133
             $configs = new Container();
134 134
             foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) {
135
-                $configs[$name] = function () use ($addLogger, $container, $name, $options) {
135
+                $configs[$name] = function() use ($addLogger, $container, $name, $options) {
136 136
                     $configOptions = $options['configuration'];
137 137
 
138 138
                     $config = new Configuration();
@@ -169,12 +169,12 @@  discard block
 block discarded – undo
169 169
      */
170 170
     private function getDbsEventManagerDefinition(Container $container): callable
171 171
     {
172
-        return function () use ($container) {
172
+        return function() use ($container) {
173 173
             $container['doctrine.dbal.dbs.options.initializer']();
174 174
 
175 175
             $managers = new Container();
176 176
             foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) {
177
-                $managers[$name] = function () {
177
+                $managers[$name] = function() {
178 178
                     return new EventManager();
179 179
                     // todo: check for set/add methods to implement
180 180
                 };
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     private function getDbDefinition(Container $container): callable
192 192
     {
193
-        return function () use ($container) {
193
+        return function() use ($container) {
194 194
             $dbs = $container['doctrine.dbal.dbs'];
195 195
 
196 196
             return $dbs[$container['doctrine.dbal.dbs.default']];
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     private function getDbConfigDefinition(Container $container): callable
205 205
     {
206
-        return function () use ($container) {
206
+        return function() use ($container) {
207 207
             $dbs = $container['doctrine.dbal.dbs.config'];
208 208
 
209 209
             return $dbs[$container['doctrine.dbal.dbs.default']];
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      */
217 217
     private function getDbEventManagerDefinition(Container $container): callable
218 218
     {
219
-        return function () use ($container) {
219
+        return function() use ($container) {
220 220
             $dbs = $container['doctrine.dbal.dbs.event_manager'];
221 221
 
222 222
             return $dbs[$container['doctrine.dbal.dbs.default']];
Please login to merge, or discard this patch.
src/DoctrineCacheServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     private function getOrmCacheLocatorDefinition(Container $container): callable
46 46
     {
47
-        return $container->protect(function (string $key, array $options) use ($container) {
47
+        return $container->protect(function(string $key, array $options) use ($container) {
48 48
             $cacheInstanceKey = 'orm.cache.instances.'.$key;
49 49
             if (isset($container[$cacheInstanceKey])) {
50 50
                 return $container[$cacheInstanceKey];
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function getOrmCacheFactoryDefinition(Container $container): callable
76 76
     {
77
-        return $container->protect(function (string $driver, array $options) use ($container) {
77
+        return $container->protect(function(string $driver, array $options) use ($container) {
78 78
             $cacheFactoryKey = 'doctrine.cache.provider.factory.'.$driver;
79 79
             if (!isset($container[$cacheFactoryKey])) {
80 80
                 throw new \RuntimeException(
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     private function getOrmCacheFactoryApcuDefinition(Container $container): callable
95 95
     {
96
-        return $container->protect(function () use ($container) {
96
+        return $container->protect(function() use ($container) {
97 97
             return new ApcuCache();
98 98
         });
99 99
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     private function getOrmCacheFactoryArrayDefinition(Container $container): callable
107 107
     {
108
-        return $container->protect(function () use ($container) {
108
+        return $container->protect(function() use ($container) {
109 109
             return new ArrayCache();
110 110
         });
111 111
     }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     private function getOrmCacheFactoryFilesystemDefinition(Container $container): callable
119 119
     {
120
-        return $container->protect(function (array $options) {
120
+        return $container->protect(function(array $options) {
121 121
             if (empty($options['path'])) {
122 122
                 throw new \RuntimeException('FilesystemCache path not defined');
123 123
             }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     private function getOrmCacheFactoryMemcachedDefinition(Container $container): callable
140 140
     {
141
-        return $container->protect(function (array $options) use ($container) {
141
+        return $container->protect(function(array $options) use ($container) {
142 142
             if (empty($options['host']) || empty($options['port'])) {
143 143
                 throw new \RuntimeException('Host and port options need to be specified for memcached cache');
144 144
             }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     private function getOrmCacheFactoryRedisDefinition(Container $container): callable
162 162
     {
163
-        return $container->protect(function (array $options) use ($container) {
163
+        return $container->protect(function(array $options) use ($container) {
164 164
             if (empty($options['host']) || empty($options['port'])) {
165 165
                 throw new \RuntimeException('Host and port options need to be specified for redis cache');
166 166
             }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      */
187 187
     private function getOrmCacheFactoryXCacheDefinition(Container $container): callable
188 188
     {
189
-        return $container->protect(function () use ($container) {
189
+        return $container->protect(function() use ($container) {
190 190
             return new XcacheCache();
191 191
         });
192 192
     }
Please login to merge, or discard this patch.