Passed
Pull Request — main (#113)
by Tom
03:25 queued 30s
created
src/Services.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -22,16 +22,16 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function __construct(
24 24
         EntityManager $entityManager,
25
-        Config|null $config = null,
26
-        array|null $metadataConfig = null,
25
+        Config | null $config = null,
26
+        array | null $metadataConfig = null,
27 27
     ) {
28 28
         $this
29 29
             // Plain classes
30 30
             ->set(EntityManager::class, $entityManager)
31 31
             ->set(
32 32
                 Config::class,
33
-                static function () use ($config) {
34
-                    if (! $config) {
33
+                static function() use ($config) {
34
+                    if (!$config) {
35 35
                         $config = new Config();
36 36
                     }
37 37
 
@@ -48,13 +48,13 @@  discard block
 block discarded – undo
48 48
             )
49 49
             ->set(
50 50
                 Metadata\Metadata::class,
51
-                static function (ContainerInterface $container) use ($metadataConfig) {
51
+                static function(ContainerInterface $container) use ($metadataConfig) {
52 52
                     return (new Metadata\MetadataFactory($container, $metadataConfig))->getMetadata();
53 53
                 },
54 54
             )
55 55
             ->set(
56 56
                 Resolve\FieldResolver::class,
57
-                static function (ContainerInterface $container) {
57
+                static function(ContainerInterface $container) {
58 58
                     return new Resolve\FieldResolver(
59 59
                         $container->get(Config::class),
60 60
                         $container->get(Metadata\Metadata::class),
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             )
64 64
             ->set(
65 65
                 Resolve\ResolveCollectionFactory::class,
66
-                static function (ContainerInterface $container) {
66
+                static function(ContainerInterface $container) {
67 67
                     return new Resolve\ResolveCollectionFactory(
68 68
                         $container->get(EntityManager::class),
69 69
                         $container->get(Config::class),
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             )
75 75
             ->set(
76 76
                 Resolve\ResolveEntityFactory::class,
77
-                static function (ContainerInterface $container) {
77
+                static function(ContainerInterface $container) {
78 78
                     return new Resolve\ResolveEntityFactory(
79 79
                         $container->get(Config::class),
80 80
                         $container->get(EntityManager::class),
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             )
85 85
             ->set(
86 86
                 Criteria\CriteriaFactory::class,
87
-                static function (ContainerInterface $container) {
87
+                static function(ContainerInterface $container) {
88 88
                     return new Criteria\CriteriaFactory(
89 89
                         $container->get(Config::class),
90 90
                         $container->get(EntityManager::class),
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             )
96 96
             ->set(
97 97
                 Hydrator\HydratorFactory::class,
98
-                static function (ContainerInterface $container) {
98
+                static function(ContainerInterface $container) {
99 99
                     return new Hydrator\HydratorFactory(
100 100
                         $container->get(EntityManager::class),
101 101
                         $container->get(Metadata\Metadata::class),
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             )
105 105
             ->set(
106 106
                 Input\InputFactory::class,
107
-                static function (ContainerInterface $container) {
107
+                static function(ContainerInterface $container) {
108 108
                     return new Input\InputFactory(
109 109
                         $container->get(Config::class),
110 110
                         $container->get(EntityManager::class),
Please login to merge, or discard this patch.