@@ -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 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | private function getLoggerDefinition(Container $container): \Closure |
| 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): \Closure |
| 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): \Closure |
| 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): \Closure |
| 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): \Closure |
| 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): \Closure |
| 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): \Closure |
| 86 | 86 | { |
| 87 | - return function () use ($container) { |
|
| 87 | + return function() use ($container) { |
|
| 88 | 88 | $container['mongodbs.options.initializer'](); |
| 89 | 89 | |
| 90 | 90 | $mongodbs = new Container(); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $manager = $container['mongodbs.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): \Closure |
| 116 | 116 | { |
| 117 | - return function () use ($container) { |
|
| 117 | + return function() use ($container) { |
|
| 118 | 118 | $container['mongodbs.options.initializer'](); |
| 119 | 119 | |
| 120 | 120 | $configs = new Container(); |
| 121 | 121 | |
| 122 | 122 | $addLogger = isset($container['logger']) && null !== $container['logger']; |
| 123 | 123 | foreach ($container['mongodbs.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 DoctrineMongoDbLogger( |
@@ -147,12 +147,12 @@ discard block |
||
| 147 | 147 | */ |
| 148 | 148 | private function getMongoDbsEventManagerDefinition(Container $container): \Closure |
| 149 | 149 | { |
| 150 | - return function () use ($container) { |
|
| 150 | + return function() use ($container) { |
|
| 151 | 151 | $container['mongodbs.options.initializer'](); |
| 152 | 152 | |
| 153 | 153 | $managers = new Container(); |
| 154 | 154 | foreach ($container['mongodbs.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): \Closure |
| 169 | 169 | { |
| 170 | - return function () use ($container) { |
|
| 170 | + return function() use ($container) { |
|
| 171 | 171 | $dbs = $container['mongodbs']; |
| 172 | 172 | |
| 173 | 173 | return $dbs[$container['mongodbs.default']]; |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | */ |
| 181 | 181 | private function getMongoDbConfigDefinition(Container $container): \Closure |
| 182 | 182 | { |
| 183 | - return function () use ($container) { |
|
| 183 | + return function() use ($container) { |
|
| 184 | 184 | $dbs = $container['mongodbs.config']; |
| 185 | 185 | |
| 186 | 186 | return $dbs[$container['mongodbs.default']]; |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | */ |
| 194 | 194 | private function getMongoDbEventManagerDefinition(Container $container): \Closure |
| 195 | 195 | { |
| 196 | - return function () use ($container) { |
|
| 196 | + return function() use ($container) { |
|
| 197 | 197 | $dbs = $container['mongodbs.event_manager']; |
| 198 | 198 | |
| 199 | 199 | return $dbs[$container['mongodbs.default']]; |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | private function getDbsOptionsInitializerDefinition(Container $container): \Closure |
| 55 | 55 | { |
| 56 | - return $container->protect(function () use ($container) { |
|
| 56 | + return $container->protect(function() use ($container) { |
|
| 57 | 57 | static $initialized = false; |
| 58 | 58 | |
| 59 | 59 | if ($initialized) { |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | private function getDbsDefinition(Container $container): \Closure |
| 90 | 90 | { |
| 91 | - return function () use ($container) { |
|
| 91 | + return function() use ($container) { |
|
| 92 | 92 | $container['dbs.options.initializer'](); |
| 93 | 93 | |
| 94 | 94 | $dbs = new Container(); |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | $manager = $container['dbs.event_manager'][$name]; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - $dbs[$name] = function () use ($options, $config, $manager) { |
|
| 105 | + $dbs[$name] = function() use ($options, $config, $manager) { |
|
| 106 | 106 | return DriverManager::getConnection($options, $config, $manager); |
| 107 | 107 | }; |
| 108 | 108 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | private function getDbsConfigDefinition(Container $container): \Closure |
| 120 | 120 | { |
| 121 | - return function () use ($container) { |
|
| 121 | + return function() use ($container) { |
|
| 122 | 122 | $container['dbs.options.initializer'](); |
| 123 | 123 | |
| 124 | 124 | $addLogger = isset($container['logger']) && null !== $container['logger'] |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | $configs = new Container(); |
| 129 | 129 | foreach ($container['dbs.options'] as $name => $options) { |
| 130 | - $configs[$name] = function () use ($addLogger, $container, $stopwatch) { |
|
| 130 | + $configs[$name] = function() use ($addLogger, $container, $stopwatch) { |
|
| 131 | 131 | $config = new Configuration(); |
| 132 | 132 | if ($addLogger) { |
| 133 | 133 | $config->setSQLLogger( |
@@ -150,12 +150,12 @@ discard block |
||
| 150 | 150 | */ |
| 151 | 151 | private function getDbsEventManagerDefinition(Container $container): \Closure |
| 152 | 152 | { |
| 153 | - return function () use ($container) { |
|
| 153 | + return function() use ($container) { |
|
| 154 | 154 | $container['dbs.options.initializer'](); |
| 155 | 155 | |
| 156 | 156 | $managers = new Container(); |
| 157 | 157 | foreach ($container['dbs.options'] as $name => $options) { |
| 158 | - $managers[$name] = function () { |
|
| 158 | + $managers[$name] = function() { |
|
| 159 | 159 | return new EventManager(); |
| 160 | 160 | }; |
| 161 | 161 | } |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | */ |
| 171 | 171 | private function getDbDefinition(Container $container): \Closure |
| 172 | 172 | { |
| 173 | - return function () use ($container) { |
|
| 173 | + return function() use ($container) { |
|
| 174 | 174 | $dbs = $container['dbs']; |
| 175 | 175 | |
| 176 | 176 | return $dbs[$container['dbs.default']]; |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | */ |
| 184 | 184 | private function getDbConfigDefinition(Container $container): \Closure |
| 185 | 185 | { |
| 186 | - return function () use ($container) { |
|
| 186 | + return function() use ($container) { |
|
| 187 | 187 | $dbs = $container['dbs.config']; |
| 188 | 188 | |
| 189 | 189 | return $dbs[$container['dbs.default']]; |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | */ |
| 197 | 197 | private function getDbEventManagerDefinition(Container $container): \Closure |
| 198 | 198 | { |
| 199 | - return function () use ($container) { |
|
| 199 | + return function() use ($container) { |
|
| 200 | 200 | $dbs = $container['dbs.event_manager']; |
| 201 | 201 | |
| 202 | 202 | return $dbs[$container['dbs.default']]; |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $container['orm.em'] = $this->getOrmEmDefinition($container); |
| 77 | 77 | $container['orm.em.config'] = $this->getOrmEmConfigDefinition($container); |
| 78 | 78 | |
| 79 | - $container['orm.mapping_driver.factory.annotation'] = $container->protect(function (array $entity, Configuration $config) { |
|
| 79 | + $container['orm.mapping_driver.factory.annotation'] = $container->protect(function(array $entity, Configuration $config) { |
|
| 80 | 80 | $useSimpleAnnotationReader = $entity['use_simple_annotation_reader'] ?? true; |
| 81 | 81 | |
| 82 | 82 | return $config->newDefaultAnnotationDriver( |
@@ -85,23 +85,23 @@ discard block |
||
| 85 | 85 | ); |
| 86 | 86 | }); |
| 87 | 87 | |
| 88 | - $container['orm.mapping_driver.factory.yml'] = $container->protect(function (array $entity) { |
|
| 88 | + $container['orm.mapping_driver.factory.yml'] = $container->protect(function(array $entity) { |
|
| 89 | 89 | return new YamlDriver($entity['path']); |
| 90 | 90 | }); |
| 91 | 91 | |
| 92 | - $container['orm.mapping_driver.factory.simple_yml'] = $container->protect(function (array $entity) { |
|
| 92 | + $container['orm.mapping_driver.factory.simple_yml'] = $container->protect(function(array $entity) { |
|
| 93 | 93 | return new SimplifiedYamlDriver([$entity['path'] => $entity['namespace']]); |
| 94 | 94 | }); |
| 95 | 95 | |
| 96 | - $container['orm.mapping_driver.factory.xml'] = $container->protect(function (array $entity) { |
|
| 96 | + $container['orm.mapping_driver.factory.xml'] = $container->protect(function(array $entity) { |
|
| 97 | 97 | return new XmlDriver($entity['path']); |
| 98 | 98 | }); |
| 99 | 99 | |
| 100 | - $container['orm.mapping_driver.factory.simple_xml'] = $container->protect(function (array $entity) { |
|
| 100 | + $container['orm.mapping_driver.factory.simple_xml'] = $container->protect(function(array $entity) { |
|
| 101 | 101 | return new SimplifiedXmlDriver([$entity['path'] => $entity['namespace']]); |
| 102 | 102 | }); |
| 103 | 103 | |
| 104 | - $container['orm.mapping_driver.factory.php'] = $container->protect(function (array $entity) { |
|
| 104 | + $container['orm.mapping_driver.factory.php'] = $container->protect(function(array $entity) { |
|
| 105 | 105 | return new StaticPHPDriver($entity['path']); |
| 106 | 106 | }); |
| 107 | 107 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | private function getOrmEmsOptionsInitializerDefinition(Container $container): \Closure |
| 127 | 127 | { |
| 128 | - return $container->protect(function () use ($container) { |
|
| 128 | + return $container->protect(function() use ($container) { |
|
| 129 | 129 | static $initialized = false; |
| 130 | 130 | |
| 131 | 131 | if ($initialized) { |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | private function getOrmEmsDefinition(Container $container): \Closure |
| 162 | 162 | { |
| 163 | - return function () use ($container) { |
|
| 163 | + return function() use ($container) { |
|
| 164 | 164 | $container['orm.ems.options.initializer'](); |
| 165 | 165 | |
| 166 | 166 | $ems = new Container(); |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $config = $container['orm.ems.config'][$name]; |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - $ems[$name] = function () use ($container, $options, $config) { |
|
| 175 | + $ems[$name] = function() use ($container, $options, $config) { |
|
| 176 | 176 | return EntityManager::create( |
| 177 | 177 | $container['dbs'][$options['connection']], |
| 178 | 178 | $config, |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | */ |
| 193 | 193 | private function getOrmEmsConfigServiceProvider(Container $container): \Closure |
| 194 | 194 | { |
| 195 | - return function () use ($container) { |
|
| 195 | + return function() use ($container) { |
|
| 196 | 196 | $container['orm.ems.options.initializer'](); |
| 197 | 197 | |
| 198 | 198 | $configs = new Container(); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | string $name, |
| 217 | 217 | array $options |
| 218 | 218 | ): \Closure { |
| 219 | - return function () use ($container, $name, $options) { |
|
| 219 | + return function() use ($container, $name, $options) { |
|
| 220 | 220 | $config = new Configuration(); |
| 221 | 221 | |
| 222 | 222 | $container['orm.cache.configurer']($name, $config, $options); |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | */ |
| 285 | 285 | private function getOrmCacheConfigurerDefinition(Container $container): \Closure |
| 286 | 286 | { |
| 287 | - return $container->protect(function ($name, Configuration $config, $options) use ($container) { |
|
| 287 | + return $container->protect(function($name, Configuration $config, $options) use ($container) { |
|
| 288 | 288 | $config->setMetadataCacheImpl($container['orm.cache.locator']($name, 'metadata', $options)); |
| 289 | 289 | $config->setQueryCacheImpl($container['orm.cache.locator']($name, 'query', $options)); |
| 290 | 290 | $config->setResultCacheImpl($container['orm.cache.locator']($name, 'result', $options)); |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | */ |
| 300 | 300 | private function getOrmCacheLocatorDefinition(Container $container): \Closure |
| 301 | 301 | { |
| 302 | - return $container->protect(function ($name, $cacheName, $options) use ($container) { |
|
| 302 | + return $container->protect(function($name, $cacheName, $options) use ($container) { |
|
| 303 | 303 | $cacheNameKey = $cacheName.'_cache'; |
| 304 | 304 | |
| 305 | 305 | if (!isset($options[$cacheNameKey])) { |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | */ |
| 341 | 341 | private function getOrmCacheFactoryApcuDefinition(Container $container): \Closure |
| 342 | 342 | { |
| 343 | - return $container->protect(function () use ($container) { |
|
| 343 | + return $container->protect(function() use ($container) { |
|
| 344 | 344 | return new ApcuCache(); |
| 345 | 345 | }); |
| 346 | 346 | } |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | */ |
| 353 | 353 | private function getOrmCacheFactoryArrayDefinition(Container $container): \Closure |
| 354 | 354 | { |
| 355 | - return $container->protect(function () use ($container) { |
|
| 355 | + return $container->protect(function() use ($container) { |
|
| 356 | 356 | return new ArrayCache(); |
| 357 | 357 | }); |
| 358 | 358 | } |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | */ |
| 365 | 365 | private function getOrmCacheFactoryFilesystemDefinition(Container $container): \Closure |
| 366 | 366 | { |
| 367 | - return $container->protect(function ($cacheOptions) { |
|
| 367 | + return $container->protect(function($cacheOptions) { |
|
| 368 | 368 | if (empty($cacheOptions['path'])) { |
| 369 | 369 | throw new \RuntimeException('FilesystemCache path not defined'); |
| 370 | 370 | } |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | */ |
| 386 | 386 | private function getOrmCacheFactoryMemcacheDefinition(Container $container): \Closure |
| 387 | 387 | { |
| 388 | - return $container->protect(function ($cacheOptions) use ($container) { |
|
| 388 | + return $container->protect(function($cacheOptions) use ($container) { |
|
| 389 | 389 | if (empty($cacheOptions['host']) || empty($cacheOptions['port'])) { |
| 390 | 390 | throw new \RuntimeException('Host and port options need to be specified for memcache cache'); |
| 391 | 391 | } |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | */ |
| 408 | 408 | private function getOrmCacheFactoryMemcachedDefinition(Container $container): \Closure |
| 409 | 409 | { |
| 410 | - return $container->protect(function ($cacheOptions) use ($container) { |
|
| 410 | + return $container->protect(function($cacheOptions) use ($container) { |
|
| 411 | 411 | if (empty($cacheOptions['host']) || empty($cacheOptions['port'])) { |
| 412 | 412 | throw new \RuntimeException('Host and port options need to be specified for memcached cache'); |
| 413 | 413 | } |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | */ |
| 430 | 430 | private function getOrmCacheFactoryRedisDefinition(Container $container): \Closure |
| 431 | 431 | { |
| 432 | - return $container->protect(function ($cacheOptions) use ($container) { |
|
| 432 | + return $container->protect(function($cacheOptions) use ($container) { |
|
| 433 | 433 | if (empty($cacheOptions['host']) || empty($cacheOptions['port'])) { |
| 434 | 434 | throw new \RuntimeException('Host and port options need to be specified for redis cache'); |
| 435 | 435 | } |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | */ |
| 456 | 456 | private function getOrmCacheFactoryXCacheDefinition(Container $container): \Closure |
| 457 | 457 | { |
| 458 | - return $container->protect(function () use ($container) { |
|
| 458 | + return $container->protect(function() use ($container) { |
|
| 459 | 459 | return new XcacheCache(); |
| 460 | 460 | }); |
| 461 | 461 | } |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | */ |
| 468 | 468 | private function getOrmCacheFactoryDefinition(Container $container): \Closure |
| 469 | 469 | { |
| 470 | - return $container->protect(function ($driver, $cacheOptions) use ($container) { |
|
| 470 | + return $container->protect(function($driver, $cacheOptions) use ($container) { |
|
| 471 | 471 | $cacheFactoryKey = 'orm.cache.factory.'.$driver; |
| 472 | 472 | if (!isset($container[$cacheFactoryKey])) { |
| 473 | 473 | throw new \RuntimeException( |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | */ |
| 487 | 487 | private function getOrmMappingDriverChainLocatorDefinition(Container $container): \Closure |
| 488 | 488 | { |
| 489 | - return $container->protect(function ($name = null) use ($container) { |
|
| 489 | + return $container->protect(function($name = null) use ($container) { |
|
| 490 | 490 | $container['orm.ems.options.initializer'](); |
| 491 | 491 | |
| 492 | 492 | if (null === $name) { |
@@ -509,7 +509,7 @@ discard block |
||
| 509 | 509 | */ |
| 510 | 510 | private function getOrmMappingDriverChainFactoryDefinition(Container $container): \Closure |
| 511 | 511 | { |
| 512 | - return $container->protect(function () use ($container) { |
|
| 512 | + return $container->protect(function() use ($container) { |
|
| 513 | 513 | return new MappingDriverChain(); |
| 514 | 514 | }); |
| 515 | 515 | } |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | */ |
| 522 | 522 | private function getOrmNamingStrategyDefinition(Container $container): \Closure |
| 523 | 523 | { |
| 524 | - return function () use ($container) { |
|
| 524 | + return function() use ($container) { |
|
| 525 | 525 | return new DefaultNamingStrategy(); |
| 526 | 526 | }; |
| 527 | 527 | } |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | */ |
| 534 | 534 | private function getOrmQuoteStrategyDefinition(Container $container): \Closure |
| 535 | 535 | { |
| 536 | - return function () use ($container) { |
|
| 536 | + return function() use ($container) { |
|
| 537 | 537 | return new DefaultQuoteStrategy(); |
| 538 | 538 | }; |
| 539 | 539 | } |
@@ -545,7 +545,7 @@ discard block |
||
| 545 | 545 | */ |
| 546 | 546 | private function getOrmEntityListenerResolverDefinition(Container $container): \Closure |
| 547 | 547 | { |
| 548 | - return function () use ($container) { |
|
| 548 | + return function() use ($container) { |
|
| 549 | 549 | return new DefaultEntityListenerResolver(); |
| 550 | 550 | }; |
| 551 | 551 | } |
@@ -557,7 +557,7 @@ discard block |
||
| 557 | 557 | */ |
| 558 | 558 | private function getOrmRepositoryFactoryDefinition(Container $container): \Closure |
| 559 | 559 | { |
| 560 | - return function () use ($container) { |
|
| 560 | + return function() use ($container) { |
|
| 561 | 561 | return new DefaultRepositoryFactory(); |
| 562 | 562 | }; |
| 563 | 563 | } |
@@ -569,7 +569,7 @@ discard block |
||
| 569 | 569 | */ |
| 570 | 570 | private function getOrmEmDefinition(Container $container): \Closure |
| 571 | 571 | { |
| 572 | - return function () use ($container) { |
|
| 572 | + return function() use ($container) { |
|
| 573 | 573 | $ems = $container['orm.ems']; |
| 574 | 574 | |
| 575 | 575 | return $ems[$container['orm.ems.default']]; |
@@ -583,7 +583,7 @@ discard block |
||
| 583 | 583 | */ |
| 584 | 584 | private function getOrmEmConfigDefinition(Container $container): \Closure |
| 585 | 585 | { |
| 586 | - return function () use ($container) { |
|
| 586 | + return function() use ($container) { |
|
| 587 | 587 | $configs = $container['orm.ems.config']; |
| 588 | 588 | |
| 589 | 589 | return $configs[$container['orm.ems.default']]; |