@@ -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 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | private function getDbDefinition(Container $container): callable |
| 41 | 41 | { |
| 42 | - return function () use ($container) { |
|
| 42 | + return function() use ($container) { |
|
| 43 | 43 | $dbs = $container['doctrine.dbal.dbs']; |
| 44 | 44 | |
| 45 | 45 | return $dbs[$container['doctrine.dbal.dbs.default']]; |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | private function getDbApcuCacheFactoryDefinition(Container $container): callable |
| 55 | 55 | { |
| 56 | - return $container->factory(function () use ($container) { |
|
| 56 | + return $container->factory(function() use ($container) { |
|
| 57 | 57 | return new ApcuCache(); |
| 58 | 58 | }); |
| 59 | 59 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | private function getDbArrayCacheFactoryDefinition(Container $container): callable |
| 67 | 67 | { |
| 68 | - return $container->factory(function () use ($container) { |
|
| 68 | + return $container->factory(function() use ($container) { |
|
| 69 | 69 | return new ArrayCache(); |
| 70 | 70 | }); |
| 71 | 71 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | private function getDbConfigDefinition(Container $container): callable |
| 79 | 79 | { |
| 80 | - return function () use ($container) { |
|
| 80 | + return function() use ($container) { |
|
| 81 | 81 | $dbs = $container['doctrine.dbal.dbs.config']; |
| 82 | 82 | |
| 83 | 83 | return $dbs[$container['doctrine.dbal.dbs.default']]; |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | */ |
| 116 | 116 | private function getDbEventManagerDefinition(Container $container): callable |
| 117 | 117 | { |
| 118 | - return function () use ($container) { |
|
| 118 | + return function() use ($container) { |
|
| 119 | 119 | $dbs = $container['doctrine.dbal.dbs.event_manager']; |
| 120 | 120 | |
| 121 | 121 | return $dbs[$container['doctrine.dbal.dbs.default']]; |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | */ |
| 130 | 130 | private function getDbsDefinition(Container $container): callable |
| 131 | 131 | { |
| 132 | - return function () use ($container) { |
|
| 132 | + return function() use ($container) { |
|
| 133 | 133 | $container['doctrine.dbal.dbs.options.initializer'](); |
| 134 | 134 | |
| 135 | 135 | $dbs = new Container(); |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | $manager = $container['doctrine.dbal.dbs.event_manager'][$name]; |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | - $dbs[$name] = function () use ($options, $config, $manager) { |
|
| 146 | + $dbs[$name] = function() use ($options, $config, $manager) { |
|
| 147 | 147 | return DriverManager::getConnection($options['connection'], $config, $manager); |
| 148 | 148 | }; |
| 149 | 149 | } |
@@ -159,14 +159,14 @@ discard block |
||
| 159 | 159 | */ |
| 160 | 160 | private function getDbsConfigDefinition(Container $container): callable |
| 161 | 161 | { |
| 162 | - return function () use ($container) { |
|
| 162 | + return function() use ($container) { |
|
| 163 | 163 | $container['doctrine.dbal.dbs.options.initializer'](); |
| 164 | 164 | |
| 165 | 165 | $addLogger = $container['logger'] ?? false; |
| 166 | 166 | |
| 167 | 167 | $configs = new Container(); |
| 168 | 168 | foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) { |
| 169 | - $configs[$name] = function () use ($addLogger, $container, $name, $options) { |
|
| 169 | + $configs[$name] = function() use ($addLogger, $container, $name, $options) { |
|
| 170 | 170 | $configOptions = $options['configuration']; |
| 171 | 171 | |
| 172 | 172 | $config = new Configuration(); |
@@ -198,12 +198,12 @@ discard block |
||
| 198 | 198 | */ |
| 199 | 199 | private function getDbsEventManagerDefinition(Container $container): callable |
| 200 | 200 | { |
| 201 | - return function () use ($container) { |
|
| 201 | + return function() use ($container) { |
|
| 202 | 202 | $container['doctrine.dbal.dbs.options.initializer'](); |
| 203 | 203 | |
| 204 | 204 | $managers = new Container(); |
| 205 | 205 | foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) { |
| 206 | - $managers[$name] = function () { |
|
| 206 | + $managers[$name] = function() { |
|
| 207 | 207 | return new EventManager(); |
| 208 | 208 | // todo: check for set/add methods to implement |
| 209 | 209 | }; |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | */ |
| 221 | 221 | private function getDbsOptionsInitializerDefinition(Container $container): callable |
| 222 | 222 | { |
| 223 | - return $container->protect(function () use ($container) { |
|
| 223 | + return $container->protect(function() use ($container) { |
|
| 224 | 224 | static $initialized = false; |
| 225 | 225 | |
| 226 | 226 | if ($initialized) { |
@@ -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 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | private function getOrmEmDefinition(Container $container): callable |
| 68 | 68 | { |
| 69 | - return function () use ($container) { |
|
| 69 | + return function() use ($container) { |
|
| 70 | 70 | $ems = $container['doctrine.orm.ems']; |
| 71 | 71 | |
| 72 | 72 | return $ems[$container['doctrine.orm.ems.default']]; |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | private function getOrmApcuCacheFactoryDefinition(Container $container): callable |
| 82 | 82 | { |
| 83 | - return $container->factory(function () use ($container) { |
|
| 83 | + return $container->factory(function() use ($container) { |
|
| 84 | 84 | return new ApcuCache(); |
| 85 | 85 | }); |
| 86 | 86 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | private function getOrmArrayCacheFactoryDefinition(Container $container): callable |
| 94 | 94 | { |
| 95 | - return $container->factory(function () use ($container) { |
|
| 95 | + return $container->factory(function() use ($container) { |
|
| 96 | 96 | return new ArrayCache(); |
| 97 | 97 | }); |
| 98 | 98 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | private function getOrmEmConfigDefinition(Container $container): callable |
| 106 | 106 | { |
| 107 | - return function () use ($container) { |
|
| 107 | + return function() use ($container) { |
|
| 108 | 108 | $configs = $container['doctrine.orm.ems.config']; |
| 109 | 109 | |
| 110 | 110 | return $configs[$container['doctrine.orm.ems.default']]; |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | */ |
| 149 | 149 | private function getOrmEmsDefinition(Container $container): callable |
| 150 | 150 | { |
| 151 | - return function () use ($container) { |
|
| 151 | + return function() use ($container) { |
|
| 152 | 152 | $container['doctrine.orm.ems.options.initializer'](); |
| 153 | 153 | |
| 154 | 154 | $ems = new Container(); |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $config = $container['doctrine.orm.ems.config'][$name]; |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | - $ems[$name] = function () use ($container, $options, $config) { |
|
| 163 | + $ems[$name] = function() use ($container, $options, $config) { |
|
| 164 | 164 | return EntityManager::create( |
| 165 | 165 | $container['doctrine.dbal.dbs'][$options['connection']], |
| 166 | 166 | $config, |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | */ |
| 181 | 181 | private function getOrmEmsConfigServiceProvider(Container $container): callable |
| 182 | 182 | { |
| 183 | - return function () use ($container) { |
|
| 183 | + return function() use ($container) { |
|
| 184 | 184 | $container['doctrine.orm.ems.options.initializer'](); |
| 185 | 185 | |
| 186 | 186 | $configs = new Container(); |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | */ |
| 292 | 292 | private function getOrmEmsOptionsInitializerDefinition(Container $container): callable |
| 293 | 293 | { |
| 294 | - return $container->protect(function () use ($container) { |
|
| 294 | + return $container->protect(function() use ($container) { |
|
| 295 | 295 | static $initialized = false; |
| 296 | 296 | |
| 297 | 297 | if ($initialized) { |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | */ |
| 328 | 328 | private function getOrmEntityListenerResolverDefinition(Container $container): callable |
| 329 | 329 | { |
| 330 | - return function () use ($container) { |
|
| 330 | + return function() use ($container) { |
|
| 331 | 331 | return new DefaultEntityListenerResolver(); |
| 332 | 332 | }; |
| 333 | 333 | } |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | */ |
| 340 | 340 | private function getOrmManagerRegistryDefintion(Container $container): callable |
| 341 | 341 | { |
| 342 | - return function ($container) { |
|
| 342 | + return function($container) { |
|
| 343 | 343 | return new DoctrineOrmManagerRegistry($container); |
| 344 | 344 | }; |
| 345 | 345 | } |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | private function getOrmMappingDriverFactoryAnnotation(Container $container): callable |
| 353 | 353 | { |
| 354 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 354 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 355 | 355 | return $config->newDefaultAnnotationDriver((array) $mapping['path'], $false); |
| 356 | 356 | }); |
| 357 | 357 | } |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | */ |
| 364 | 364 | private function getOrmMappingDriverFactoryPhp(Container $container): callable |
| 365 | 365 | { |
| 366 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 366 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 367 | 367 | return new StaticPHPDriver($mapping['path']); |
| 368 | 368 | }); |
| 369 | 369 | } |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | */ |
| 376 | 376 | private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable |
| 377 | 377 | { |
| 378 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 378 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 379 | 379 | return new SimplifiedYamlDriver( |
| 380 | 380 | [$mapping['path'] => $mapping['namespace']], |
| 381 | 381 | $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | */ |
| 391 | 391 | private function getOrmMappingDriverFactorySimpleXml(Container $container): callable |
| 392 | 392 | { |
| 393 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 393 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 394 | 394 | return new SimplifiedXmlDriver( |
| 395 | 395 | [$mapping['path'] => $mapping['namespace']], |
| 396 | 396 | $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | */ |
| 406 | 406 | private function getOrmMappingDriverFactoryYaml(Container $container): callable |
| 407 | 407 | { |
| 408 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 408 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 409 | 409 | return new YamlDriver($mapping['path'], $mapping['extension'] ?? YamlDriver::DEFAULT_FILE_EXTENSION); |
| 410 | 410 | }); |
| 411 | 411 | } |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | */ |
| 418 | 418 | private function getOrmMappingDriverFactoryXml(Container $container): callable |
| 419 | 419 | { |
| 420 | - return $container->protect(function (array $mapping, Configuration $config) { |
|
| 420 | + return $container->protect(function(array $mapping, Configuration $config) { |
|
| 421 | 421 | return new XmlDriver($mapping['path'], $mapping['extension'] ?? XmlDriver::DEFAULT_FILE_EXTENSION); |
| 422 | 422 | }); |
| 423 | 423 | } |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | */ |
| 430 | 430 | private function getOrmMappingDriverChainDefinition(Container $container): callable |
| 431 | 431 | { |
| 432 | - return $container->protect(function (string $name, Configuration $config, array $mappings) use ($container) { |
|
| 432 | + return $container->protect(function(string $name, Configuration $config, array $mappings) use ($container) { |
|
| 433 | 433 | $chain = new MappingDriverChain(); |
| 434 | 434 | foreach ($mappings as $mapping) { |
| 435 | 435 | if (!is_array($mapping)) { |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | */ |
| 459 | 459 | private function getOrmRepositoryFactoryDefinition(Container $container): callable |
| 460 | 460 | { |
| 461 | - return function () use ($container) { |
|
| 461 | + return function() use ($container) { |
|
| 462 | 462 | return new DefaultRepositoryFactory(); |
| 463 | 463 | }; |
| 464 | 464 | } |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | */ |
| 471 | 471 | private function getOrmNamingStrategyDefinition(Container $container): callable |
| 472 | 472 | { |
| 473 | - return function () use ($container) { |
|
| 473 | + return function() use ($container) { |
|
| 474 | 474 | return new DefaultNamingStrategy(); |
| 475 | 475 | }; |
| 476 | 476 | } |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | */ |
| 483 | 483 | private function getOrmQuoteStrategyDefinition(Container $container): callable |
| 484 | 484 | { |
| 485 | - return function () use ($container) { |
|
| 485 | + return function() use ($container) { |
|
| 486 | 486 | return new DefaultQuoteStrategy(); |
| 487 | 487 | }; |
| 488 | 488 | } |