@@ -36,7 +36,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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'], |
@@ -49,7 +49,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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']]; |
@@ -49,7 +49,7 @@ |
||
| 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 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * @param Container $container |
| 64 | 64 | * |
| 65 | - * @return callable |
|
| 65 | + * @return \Closure |
|
| 66 | 66 | */ |
| 67 | 67 | private function getOrmEmDefinition(Container $container): callable |
| 68 | 68 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | /** |
| 101 | 101 | * @param Container $container |
| 102 | 102 | * |
| 103 | - * @return callable |
|
| 103 | + * @return \Closure |
|
| 104 | 104 | */ |
| 105 | 105 | private function getOrmEmConfigDefinition(Container $container): callable |
| 106 | 106 | { |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | /** |
| 145 | 145 | * @param Container $container |
| 146 | 146 | * |
| 147 | - * @return callable |
|
| 147 | + * @return \Closure |
|
| 148 | 148 | */ |
| 149 | 149 | private function getOrmEmsDefinition(Container $container): callable |
| 150 | 150 | { |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | /** |
| 177 | 177 | * @param Container $container |
| 178 | 178 | * |
| 179 | - * @return callable |
|
| 179 | + * @return \Closure |
|
| 180 | 180 | */ |
| 181 | 181 | private function getOrmEmsConfigServiceProvider(Container $container): callable |
| 182 | 182 | { |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | /** |
| 324 | 324 | * @param Container $container |
| 325 | 325 | * |
| 326 | - * @return callable |
|
| 326 | + * @return \Closure |
|
| 327 | 327 | */ |
| 328 | 328 | private function getOrmEntityListenerResolverDefinition(Container $container): callable |
| 329 | 329 | { |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | /** |
| 336 | 336 | * @param Container $container |
| 337 | 337 | * |
| 338 | - * @return callable |
|
| 338 | + * @return \Closure |
|
| 339 | 339 | */ |
| 340 | 340 | private function getOrmManagerRegistryDefintion(Container $container): callable |
| 341 | 341 | { |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | /** |
| 455 | 455 | * @param Container $container |
| 456 | 456 | * |
| 457 | - * @return callable |
|
| 457 | + * @return \Closure |
|
| 458 | 458 | */ |
| 459 | 459 | private function getOrmRepositoryFactoryDefinition(Container $container): callable |
| 460 | 460 | { |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | /** |
| 467 | 467 | * @param Container $container |
| 468 | 468 | * |
| 469 | - * @return callable |
|
| 469 | + * @return \Closure |
|
| 470 | 470 | */ |
| 471 | 471 | private function getOrmNamingStrategyDefinition(Container $container): callable |
| 472 | 472 | { |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | /** |
| 479 | 479 | * @param Container $container |
| 480 | 480 | * |
| 481 | - * @return callable |
|
| 481 | + * @return \Closure |
|
| 482 | 482 | */ |
| 483 | 483 | private function getOrmQuoteStrategyDefinition(Container $container): callable |
| 484 | 484 | { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | private function getOrmEmDefinition(Container $container): callable |
| 65 | 65 | { |
| 66 | - return function () use ($container) { |
|
| 66 | + return function() use ($container) { |
|
| 67 | 67 | $ems = $container['doctrine.orm.ems']; |
| 68 | 68 | |
| 69 | 69 | return $ems[$container['doctrine.orm.ems.default']]; |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | private function getOrmEmConfigDefinition(Container $container): callable |
| 79 | 79 | { |
| 80 | - return function () use ($container) { |
|
| 80 | + return function() use ($container) { |
|
| 81 | 81 | $configs = $container['doctrine.orm.ems.config']; |
| 82 | 82 | |
| 83 | 83 | return $configs[$container['doctrine.orm.ems.default']]; |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | private function getOrmEmsDefinition(Container $container): callable |
| 123 | 123 | { |
| 124 | - return function () use ($container) { |
|
| 124 | + return function() use ($container) { |
|
| 125 | 125 | $container['doctrine.orm.ems.options.initializer'](); |
| 126 | 126 | |
| 127 | 127 | $ems = new Container(); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $config = $container['doctrine.orm.ems.config'][$name]; |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - $ems[$name] = function () use ($container, $options, $config) { |
|
| 135 | + $ems[$name] = function() use ($container, $options, $config) { |
|
| 136 | 136 | return EntityManager::create( |
| 137 | 137 | $container['doctrine.dbal.dbs'][$options['connection']], |
| 138 | 138 | $config, |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | private function getOrmEmsConfigServiceProvider(Container $container): callable |
| 154 | 154 | { |
| 155 | - return function () use ($container) { |
|
| 155 | + return function() use ($container) { |
|
| 156 | 156 | $container['doctrine.orm.ems.options.initializer'](); |
| 157 | 157 | |
| 158 | 158 | $configs = new Container(); |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | */ |
| 255 | 255 | private function getOrmEmsOptionsInitializerDefinition(Container $container): callable |
| 256 | 256 | { |
| 257 | - return $container->protect(function () use ($container) { |
|
| 257 | + return $container->protect(function() use ($container) { |
|
| 258 | 258 | static $initialized = false; |
| 259 | 259 | |
| 260 | 260 | if ($initialized) { |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | */ |
| 291 | 291 | private function getOrmEntityListenerResolverDefinition(Container $container): callable |
| 292 | 292 | { |
| 293 | - return function () use ($container) { |
|
| 293 | + return function() use ($container) { |
|
| 294 | 294 | return new DefaultEntityListenerResolver(); |
| 295 | 295 | }; |
| 296 | 296 | } |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | */ |
| 303 | 303 | private function getOrmManagerRegistryDefintion(Container $container): callable |
| 304 | 304 | { |
| 305 | - return function ($container) { |
|
| 305 | + return function($container) { |
|
| 306 | 306 | return new DoctrineOrmManagerRegistry($container); |
| 307 | 307 | }; |
| 308 | 308 | } |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | */ |
| 315 | 315 | private function getOrmMappingDriverFactoryAnnotation(Container $container): callable |
| 316 | 316 | { |
| 317 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 317 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 318 | 318 | return $config->newDefaultAnnotationDriver((array) $mapping['path'], false); |
| 319 | 319 | }); |
| 320 | 320 | } |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | */ |
| 327 | 327 | private function getOrmMappingDriverFactoryStaticPhp(Container $container): callable |
| 328 | 328 | { |
| 329 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 329 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 330 | 330 | return new StaticPHPDriver($mapping['path']); |
| 331 | 331 | }); |
| 332 | 332 | } |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | */ |
| 339 | 339 | private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable |
| 340 | 340 | { |
| 341 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 341 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 342 | 342 | return new SimplifiedYamlDriver( |
| 343 | 343 | [$mapping['path'] => $mapping['namespace']], |
| 344 | 344 | $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | */ |
| 354 | 354 | private function getOrmMappingDriverFactorySimpleXml(Container $container): callable |
| 355 | 355 | { |
| 356 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 356 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 357 | 357 | return new SimplifiedXmlDriver( |
| 358 | 358 | [$mapping['path'] => $mapping['namespace']], |
| 359 | 359 | $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | */ |
| 369 | 369 | private function getOrmMappingDriverFactoryYaml(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 YamlDriver($mapping['path'], $mapping['extension'] ?? YamlDriver::DEFAULT_FILE_EXTENSION); |
| 373 | 373 | }); |
| 374 | 374 | } |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | */ |
| 381 | 381 | private function getOrmMappingDriverFactoryXml(Container $container): callable |
| 382 | 382 | { |
| 383 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 383 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 384 | 384 | return new XmlDriver($mapping['path'], $mapping['extension'] ?? XmlDriver::DEFAULT_FILE_EXTENSION); |
| 385 | 385 | }); |
| 386 | 386 | } |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | */ |
| 393 | 393 | private function getOrmMappingDriverChainDefinition(Container $container): callable |
| 394 | 394 | { |
| 395 | - return $container->protect(function (Configuration $config, array $mappings) use ($container) { |
|
| 395 | + return $container->protect(function(Configuration $config, array $mappings) use ($container) { |
|
| 396 | 396 | $chain = new MappingDriverChain(); |
| 397 | 397 | foreach ($mappings as $mapping) { |
| 398 | 398 | if (isset($mapping['alias'])) { |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | */ |
| 416 | 416 | private function getOrmRepositoryFactoryDefinition(Container $container): callable |
| 417 | 417 | { |
| 418 | - return function () use ($container) { |
|
| 418 | + return function() use ($container) { |
|
| 419 | 419 | return new DefaultRepositoryFactory(); |
| 420 | 420 | }; |
| 421 | 421 | } |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | */ |
| 428 | 428 | private function getOrmNamingStrategyDefinition(Container $container): callable |
| 429 | 429 | { |
| 430 | - return function () use ($container) { |
|
| 430 | + return function() use ($container) { |
|
| 431 | 431 | return new DefaultNamingStrategy(); |
| 432 | 432 | }; |
| 433 | 433 | } |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | */ |
| 440 | 440 | private function getOrmQuoteStrategyDefinition(Container $container): callable |
| 441 | 441 | { |
| 442 | - return function () use ($container) { |
|
| 442 | + return function() use ($container) { |
|
| 443 | 443 | return new DefaultQuoteStrategy(); |
| 444 | 444 | }; |
| 445 | 445 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * @param Container $container |
| 40 | 40 | * |
| 41 | - * @return callable |
|
| 41 | + * @return \Closure |
|
| 42 | 42 | */ |
| 43 | 43 | private function getDbDefinition(Container $container): callable |
| 44 | 44 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * @param Container $container |
| 78 | 78 | * |
| 79 | - * @return callable |
|
| 79 | + * @return \Closure |
|
| 80 | 80 | */ |
| 81 | 81 | private function getDbConfigDefinition(Container $container): callable |
| 82 | 82 | { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | /** |
| 115 | 115 | * @param Container $container |
| 116 | 116 | * |
| 117 | - * @return callable |
|
| 117 | + * @return \Closure |
|
| 118 | 118 | */ |
| 119 | 119 | private function getDbEventManagerDefinition(Container $container): callable |
| 120 | 120 | { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * @param Container $container |
| 130 | 130 | * |
| 131 | - * @return callable |
|
| 131 | + * @return \Closure |
|
| 132 | 132 | */ |
| 133 | 133 | private function getDbsDefinition(Container $container): callable |
| 134 | 134 | { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | /** |
| 158 | 158 | * @param Container $container |
| 159 | 159 | * |
| 160 | - * @return callable |
|
| 160 | + * @return \Closure |
|
| 161 | 161 | */ |
| 162 | 162 | private function getDbsConfigDefinition(Container $container): callable |
| 163 | 163 | { |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | /** |
| 194 | 194 | * @param Container $container |
| 195 | 195 | * |
| 196 | - * @return callable |
|
| 196 | + * @return \Closure |
|
| 197 | 197 | */ |
| 198 | 198 | private function getDbsEventManagerDefinition(Container $container): callable |
| 199 | 199 | { |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | private function getDbDefinition(Container $container): callable |
| 44 | 44 | { |
| 45 | - return function () use ($container) { |
|
| 45 | + return function() use ($container) { |
|
| 46 | 46 | $dbs = $container['doctrine.dbal.dbs']; |
| 47 | 47 | |
| 48 | 48 | return $dbs[$container['doctrine.dbal.dbs.default']]; |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | private function getDbApcuCacheFactoryDefinition(Container $container): callable |
| 58 | 58 | { |
| 59 | - return $container->protect(function (array $options) use ($container) { |
|
| 59 | + return $container->protect(function(array $options) use ($container) { |
|
| 60 | 60 | return new ApcuCache(); |
| 61 | 61 | }); |
| 62 | 62 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | private function getDbArrayCacheFactoryDefinition(Container $container): callable |
| 70 | 70 | { |
| 71 | - return $container->protect(function (array $options) use ($container) { |
|
| 71 | + return $container->protect(function(array $options) use ($container) { |
|
| 72 | 72 | return new ArrayCache(); |
| 73 | 73 | }); |
| 74 | 74 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | private function getDbConfigDefinition(Container $container): callable |
| 82 | 82 | { |
| 83 | - return function () use ($container) { |
|
| 83 | + return function() use ($container) { |
|
| 84 | 84 | $dbs = $container['doctrine.dbal.dbs.config']; |
| 85 | 85 | |
| 86 | 86 | return $dbs[$container['doctrine.dbal.dbs.default']]; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | private function getDbEventManagerDefinition(Container $container): callable |
| 120 | 120 | { |
| 121 | - return function () use ($container) { |
|
| 121 | + return function() use ($container) { |
|
| 122 | 122 | $dbs = $container['doctrine.dbal.dbs.event_manager']; |
| 123 | 123 | |
| 124 | 124 | return $dbs[$container['doctrine.dbal.dbs.default']]; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | private function getDbsDefinition(Container $container): callable |
| 134 | 134 | { |
| 135 | - return function () use ($container) { |
|
| 135 | + return function() use ($container) { |
|
| 136 | 136 | $container['doctrine.dbal.dbs.options.initializer'](); |
| 137 | 137 | |
| 138 | 138 | $dbs = new Container(); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $manager = $container['doctrine.dbal.dbs.event_manager'][$name]; |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | - $dbs[$name] = function () use ($options, $config, $manager) { |
|
| 148 | + $dbs[$name] = function() use ($options, $config, $manager) { |
|
| 149 | 149 | return DriverManager::getConnection($options['connection'], $config, $manager); |
| 150 | 150 | }; |
| 151 | 151 | } |
@@ -161,14 +161,14 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | private function getDbsConfigDefinition(Container $container): callable |
| 163 | 163 | { |
| 164 | - return function () use ($container) { |
|
| 164 | + return function() use ($container) { |
|
| 165 | 165 | $container['doctrine.dbal.dbs.options.initializer'](); |
| 166 | 166 | |
| 167 | 167 | $addLogger = $container['logger'] ?? false; |
| 168 | 168 | |
| 169 | 169 | $configs = new Container(); |
| 170 | 170 | foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) { |
| 171 | - $configs[$name] = function () use ($addLogger, $container, $name, $options) { |
|
| 171 | + $configs[$name] = function() use ($addLogger, $container, $name, $options) { |
|
| 172 | 172 | $configOptions = $options['configuration']; |
| 173 | 173 | |
| 174 | 174 | $config = new Configuration(); |
@@ -197,12 +197,12 @@ discard block |
||
| 197 | 197 | */ |
| 198 | 198 | private function getDbsEventManagerDefinition(Container $container): callable |
| 199 | 199 | { |
| 200 | - return function () use ($container) { |
|
| 200 | + return function() use ($container) { |
|
| 201 | 201 | $container['doctrine.dbal.dbs.options.initializer'](); |
| 202 | 202 | |
| 203 | 203 | $managers = new Container(); |
| 204 | 204 | foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) { |
| 205 | - $managers[$name] = function () { |
|
| 205 | + $managers[$name] = function() { |
|
| 206 | 206 | return new EventManager(); |
| 207 | 207 | }; |
| 208 | 208 | } |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | */ |
| 219 | 219 | private function getDbsOptionsInitializerDefinition(Container $container): callable |
| 220 | 220 | { |
| 221 | - return $container->protect(function () use ($container) { |
|
| 221 | + return $container->protect(function() use ($container) { |
|
| 222 | 222 | static $initialized = false; |
| 223 | 223 | |
| 224 | 224 | if ($initialized) { |