Passed
Pull Request — main (#112)
by Tom
03:05
created
src/Services.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * This is the shared TypeManger for all Drivers
29 29
      */
30
-    private static Type\TypeManager|null $typeManagerShared = null;
30
+    private static Type\TypeManager | null $typeManagerShared = null;
31 31
 
32 32
     /**
33 33
      * A local persisting flag for the value of $clearTypeManager when
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function __construct(
44 44
         EntityManager $entityManager,
45
-        Config|null $config = null,
46
-        array|null $metadataConfig = null,
45
+        Config | null $config = null,
46
+        array | null $metadataConfig = null,
47 47
     ) {
48 48
         $this->clearTypeManagerLocal = self::$clearTypeManager;
49 49
 
50
-        if (! self::$typeManagerShared) {
50
+        if (!self::$typeManagerShared) {
51 51
             self::$typeManagerShared = new Type\TypeManager();
52 52
         }
53 53
 
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
             ->set(EntityManager::class, $entityManager)
57 57
             ->set(
58 58
                 Config::class,
59
-                static function () use ($config) {
60
-                    if (! $config) {
59
+                static function() use ($config) {
60
+                    if (!$config) {
61 61
                         $config = new Config();
62 62
                     }
63 63
 
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
             )
77 77
             ->set(
78 78
                 Metadata\Metadata::class,
79
-                static function (ContainerInterface $container) use ($metadataConfig) {
79
+                static function(ContainerInterface $container) use ($metadataConfig) {
80 80
                     return (new Metadata\MetadataFactory($container, $metadataConfig))->getMetadata();
81 81
                 },
82 82
             )
83 83
             ->set(
84 84
                 Resolve\FieldResolver::class,
85
-                static function (ContainerInterface $container) {
85
+                static function(ContainerInterface $container) {
86 86
                     return new Resolve\FieldResolver(
87 87
                         $container->get(Config::class),
88 88
                         $container->get(Metadata\Metadata::class),
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             )
92 92
             ->set(
93 93
                 Resolve\ResolveCollectionFactory::class,
94
-                static function (ContainerInterface $container) {
94
+                static function(ContainerInterface $container) {
95 95
                     return new Resolve\ResolveCollectionFactory(
96 96
                         $container->get(EntityManager::class),
97 97
                         $container->get(Config::class),
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             )
103 103
             ->set(
104 104
                 Resolve\ResolveEntityFactory::class,
105
-                static function (ContainerInterface $container) {
105
+                static function(ContainerInterface $container) {
106 106
                     return new Resolve\ResolveEntityFactory(
107 107
                         $container->get(Config::class),
108 108
                         $container->get(EntityManager::class),
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             )
113 113
             ->set(
114 114
                 Criteria\CriteriaFactory::class,
115
-                static function (ContainerInterface $container) {
115
+                static function(ContainerInterface $container) {
116 116
                     return new Criteria\CriteriaFactory(
117 117
                         $container->get(Config::class),
118 118
                         $container->get(EntityManager::class),
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             )
124 124
             ->set(
125 125
                 Hydrator\HydratorFactory::class,
126
-                static function (ContainerInterface $container) {
126
+                static function(ContainerInterface $container) {
127 127
                     return new Hydrator\HydratorFactory(
128 128
                         $container->get(EntityManager::class),
129 129
                         $container->get(Metadata\Metadata::class),
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             )
133 133
             ->set(
134 134
                 Input\InputFactory::class,
135
-                static function (ContainerInterface $container) {
135
+                static function(ContainerInterface $container) {
136 136
                     return new Input\InputFactory(
137 137
                         $container->get(Config::class),
138 138
                         $container->get(EntityManager::class),
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 },
143 143
             );
144 144
 
145
-        if (! $this->get(Config::class)->getGlobalEnable()) {
145
+        if (!$this->get(Config::class)->getGlobalEnable()) {
146 146
             return;
147 147
         }
148 148
 
Please login to merge, or discard this patch.