@@ -27,7 +27,7 @@ discard block |
||
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 |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function __construct( |
49 | 49 | EntityManager $entityManager, |
50 | - Config|null $config = null, |
|
51 | - array|null $metadataConfig = null, |
|
50 | + Config | null $config = null, |
|
51 | + array | null $metadataConfig = null, |
|
52 | 52 | ) { |
53 | 53 | $this->clearTypeManagerLocal = self::$clearTypeManager; |
54 | 54 | |
55 | 55 | if (self::$clearTypeManager) { |
56 | 56 | $this->typeManagerLocal = new Type\TypeManager(); |
57 | - } elseif (! self::$typeManagerShared) { |
|
57 | + } elseif (!self::$typeManagerShared) { |
|
58 | 58 | self::$typeManagerShared = new Type\TypeManager(); |
59 | 59 | } |
60 | 60 | |
@@ -63,8 +63,8 @@ discard block |
||
63 | 63 | ->set(EntityManager::class, $entityManager) |
64 | 64 | ->set( |
65 | 65 | Config::class, |
66 | - static function () use ($config) { |
|
67 | - if (! $config) { |
|
66 | + static function() use ($config) { |
|
67 | + if (!$config) { |
|
68 | 68 | $config = new Config(); |
69 | 69 | } |
70 | 70 | |
@@ -83,13 +83,13 @@ discard block |
||
83 | 83 | ) |
84 | 84 | ->set( |
85 | 85 | Metadata\Metadata::class, |
86 | - static function (ContainerInterface $container) use ($metadataConfig) { |
|
86 | + static function(ContainerInterface $container) use ($metadataConfig) { |
|
87 | 87 | return (new Metadata\MetadataFactory($container, $metadataConfig))->getMetadata(); |
88 | 88 | }, |
89 | 89 | ) |
90 | 90 | ->set( |
91 | 91 | Resolve\FieldResolver::class, |
92 | - static function (ContainerInterface $container) { |
|
92 | + static function(ContainerInterface $container) { |
|
93 | 93 | return new Resolve\FieldResolver( |
94 | 94 | $container->get(Config::class), |
95 | 95 | $container->get(Metadata\Metadata::class), |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | ) |
99 | 99 | ->set( |
100 | 100 | Resolve\ResolveCollectionFactory::class, |
101 | - static function (ContainerInterface $container) { |
|
101 | + static function(ContainerInterface $container) { |
|
102 | 102 | return new Resolve\ResolveCollectionFactory( |
103 | 103 | $container->get(EntityManager::class), |
104 | 104 | $container->get(Config::class), |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | ) |
110 | 110 | ->set( |
111 | 111 | Resolve\ResolveEntityFactory::class, |
112 | - static function (ContainerInterface $container) { |
|
112 | + static function(ContainerInterface $container) { |
|
113 | 113 | return new Resolve\ResolveEntityFactory( |
114 | 114 | $container->get(Config::class), |
115 | 115 | $container->get(EntityManager::class), |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | ) |
120 | 120 | ->set( |
121 | 121 | Criteria\CriteriaFactory::class, |
122 | - static function (ContainerInterface $container) { |
|
122 | + static function(ContainerInterface $container) { |
|
123 | 123 | return new Criteria\CriteriaFactory( |
124 | 124 | $container->get(Config::class), |
125 | 125 | $container->get(EntityManager::class), |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | ) |
131 | 131 | ->set( |
132 | 132 | Hydrator\HydratorFactory::class, |
133 | - static function (ContainerInterface $container) { |
|
133 | + static function(ContainerInterface $container) { |
|
134 | 134 | return new Hydrator\HydratorFactory( |
135 | 135 | $container->get(EntityManager::class), |
136 | 136 | $container->get(Metadata\Metadata::class), |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | ) |
140 | 140 | ->set( |
141 | 141 | Input\InputFactory::class, |
142 | - static function (ContainerInterface $container) { |
|
142 | + static function(ContainerInterface $container) { |
|
143 | 143 | return new Input\InputFactory( |
144 | 144 | $container->get(Config::class), |
145 | 145 | $container->get(EntityManager::class), |