Completed
Push — master ( 7eb259...e42f4b )
by Dominik
08:43
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   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                     $config = $container['doctrine.orm.ems.config'][$name];
160 160
                 }
161 161
 
162
-                $ems[$name] = function () use ($container, $options, $config) {
162
+                $ems[$name] = function() use ($container, $options, $config) {
163 163
                     return EntityManager::create(
164 164
                         $container['doctrine.dbal.dbs'][$options['connection']],
165 165
                         $config,
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     private function getOrmEmsConfigServiceProvider(Container $container): callable
181 181
     {
182
-        return function () use ($container) {
182
+        return function() use ($container) {
183 183
             $container['doctrine.orm.ems.options.initializer']();
184 184
 
185 185
             $configs = new Container();
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      */
284 284
     private function getOrmEmsOptionsInitializerDefinition(Container $container): callable
285 285
     {
286
-        return $container->protect(function () use ($container) {
286
+        return $container->protect(function() use ($container) {
287 287
             static $initialized = false;
288 288
 
289 289
             if ($initialized) {
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
      */
320 320
     private function getOrmEntityListenerResolverDefinition(Container $container): callable
321 321
     {
322
-        return function () use ($container) {
322
+        return function() use ($container) {
323 323
             return new DefaultEntityListenerResolver();
324 324
         };
325 325
     }
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
      */
332 332
     private function getOrmManagerRegistryDefintion(Container $container): callable
333 333
     {
334
-        return function ($container) {
334
+        return function($container) {
335 335
             return new DoctrineOrmManagerRegistry($container);
336 336
         };
337 337
     }
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
      */
344 344
     private function getOrmMappingDriverFactoryAnnotation(Container $container): callable
345 345
     {
346
-        return $container->protect(function (array $mapping, Configuration $config) {
346
+        return $container->protect(function(array $mapping, Configuration $config) {
347 347
             return $config->newDefaultAnnotationDriver((array) $mapping['path'], false);
348 348
         });
349 349
     }
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
      */
356 356
     private function getOrmMappingDriverFactoryStaticPhp(Container $container): callable
357 357
     {
358
-        return $container->protect(function (array $mapping, Configuration $config) {
358
+        return $container->protect(function(array $mapping, Configuration $config) {
359 359
             return new StaticPHPDriver($mapping['path']);
360 360
         });
361 361
     }
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
      */
368 368
     private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable
369 369
     {
370
-        return $container->protect(function (array $mapping, Configuration $config) {
370
+        return $container->protect(function(array $mapping, Configuration $config) {
371 371
             return new SimplifiedYamlDriver(
372 372
                 [$mapping['path'] => $mapping['namespace']],
373 373
                 $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
      */
383 383
     private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
384 384
     {
385
-        return $container->protect(function (array $mapping, Configuration $config) {
385
+        return $container->protect(function(array $mapping, Configuration $config) {
386 386
             return new SimplifiedXmlDriver(
387 387
                 [$mapping['path'] => $mapping['namespace']],
388 388
                 $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
      */
398 398
     private function getOrmMappingDriverFactoryYaml(Container $container): callable
399 399
     {
400
-        return $container->protect(function (array $mapping, Configuration $config) {
400
+        return $container->protect(function(array $mapping, Configuration $config) {
401 401
             return new YamlDriver($mapping['path'], $mapping['extension'] ?? YamlDriver::DEFAULT_FILE_EXTENSION);
402 402
         });
403 403
     }
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
      */
410 410
     private function getOrmMappingDriverFactoryXml(Container $container): callable
411 411
     {
412
-        return $container->protect(function (array $mapping, Configuration $config) {
412
+        return $container->protect(function(array $mapping, Configuration $config) {
413 413
             return new XmlDriver($mapping['path'], $mapping['extension'] ?? XmlDriver::DEFAULT_FILE_EXTENSION);
414 414
         });
415 415
     }
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
      */
422 422
     private function getOrmMappingDriverChainDefinition(Container $container): callable
423 423
     {
424
-        return $container->protect(function (Configuration $config, array $mappings) use ($container) {
424
+        return $container->protect(function(Configuration $config, array $mappings) use ($container) {
425 425
             $chain = new MappingDriverChain();
426 426
             foreach ($mappings as $mapping) {
427 427
                 if (isset($mapping['alias'])) {
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
      */
445 445
     private function getOrmRepositoryFactoryDefinition(Container $container): callable
446 446
     {
447
-        return function () use ($container) {
447
+        return function() use ($container) {
448 448
             return new DefaultRepositoryFactory();
449 449
         };
450 450
     }
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
      */
457 457
     private function getOrmNamingStrategyDefinition(Container $container): callable
458 458
     {
459
-        return function () use ($container) {
459
+        return function() use ($container) {
460 460
             return new DefaultNamingStrategy();
461 461
         };
462 462
     }
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
      */
469 469
     private function getOrmQuoteStrategyDefinition(Container $container): callable
470 470
     {
471
-        return function () use ($container) {
471
+        return function() use ($container) {
472 472
             return new DefaultQuoteStrategy();
473 473
         };
474 474
     }
Please login to merge, or discard this patch.
src/DoctrineDbalServiceProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                     $manager = $container['doctrine.dbal.dbs.event_manager'][$name];
143 143
                 }
144 144
 
145
-                $dbs[$name] = function () use ($options, $config, $manager) {
145
+                $dbs[$name] = function() use ($options, $config, $manager) {
146 146
                     return DriverManager::getConnection($options['connection'], $config, $manager);
147 147
                 };
148 148
             }
@@ -158,14 +158,14 @@  discard block
 block discarded – undo
158 158
      */
159 159
     private function getDbsConfigDefinition(Container $container): callable
160 160
     {
161
-        return function () use ($container) {
161
+        return function() use ($container) {
162 162
             $container['doctrine.dbal.dbs.options.initializer']();
163 163
 
164 164
             $addLogger = $container['logger'] ?? false;
165 165
 
166 166
             $configs = new Container();
167 167
             foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) {
168
-                $configs[$name] = function () use ($addLogger, $container, $name, $options) {
168
+                $configs[$name] = function() use ($addLogger, $container, $name, $options) {
169 169
                     $configOptions = $options['configuration'];
170 170
 
171 171
                     $config = new Configuration();
@@ -195,12 +195,12 @@  discard block
 block discarded – undo
195 195
      */
196 196
     private function getDbsEventManagerDefinition(Container $container): callable
197 197
     {
198
-        return function () use ($container) {
198
+        return function() use ($container) {
199 199
             $container['doctrine.dbal.dbs.options.initializer']();
200 200
 
201 201
             $managers = new Container();
202 202
             foreach ($container['doctrine.dbal.dbs.options'] as $name => $options) {
203
-                $managers[$name] = function () {
203
+                $managers[$name] = function() {
204 204
                     return new EventManager();
205 205
                 };
206 206
             }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      */
217 217
     private function getDbsOptionsInitializerDefinition(Container $container): callable
218 218
     {
219
-        return $container->protect(function () use ($container) {
219
+        return $container->protect(function() use ($container) {
220 220
             static $initialized = false;
221 221
 
222 222
             if ($initialized) {
Please login to merge, or discard this patch.