@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * Be warned, using the same groupSuffix with two different |
25 | 25 | * groups can cause collisions. |
26 | 26 | */ |
27 | - protected string|null $groupSuffix = null; |
|
27 | + protected string | null $groupSuffix = null; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * @var bool When set to true hydrator results will be cached for the |
@@ -52,14 +52,14 @@ discard block |
||
52 | 52 | * all hydrators will extract by reference. This overrides |
53 | 53 | * per-entity attribute configuration. |
54 | 54 | */ |
55 | - protected bool|null $globalByValue = null; |
|
55 | + protected bool | null $globalByValue = null; |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * @var string|null When set, the entityPrefix will be removed from each |
59 | 59 | * type name. This simplifies type names and makes reading |
60 | 60 | * the GraphQL documentation easier. |
61 | 61 | */ |
62 | - protected string|null $entityPrefix = null; |
|
62 | + protected string | null $entityPrefix = null; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * @var bool When set to false the driver will have a unique instance of the |
@@ -95,14 +95,14 @@ discard block |
||
95 | 95 | return $this->group; |
96 | 96 | } |
97 | 97 | |
98 | - protected function setGroupSuffix(string|null $groupSuffix): self |
|
98 | + protected function setGroupSuffix(string | null $groupSuffix): self |
|
99 | 99 | { |
100 | 100 | $this->groupSuffix = $groupSuffix; |
101 | 101 | |
102 | 102 | return $this; |
103 | 103 | } |
104 | 104 | |
105 | - public function getGroupSuffix(): string|null |
|
105 | + public function getGroupSuffix(): string | null |
|
106 | 106 | { |
107 | 107 | return $this->groupSuffix; |
108 | 108 | } |
@@ -157,26 +157,26 @@ discard block |
||
157 | 157 | return $this->globalIgnore; |
158 | 158 | } |
159 | 159 | |
160 | - protected function setGlobalByValue(bool|null $globalByValue): self |
|
160 | + protected function setGlobalByValue(bool | null $globalByValue): self |
|
161 | 161 | { |
162 | 162 | $this->globalByValue = $globalByValue; |
163 | 163 | |
164 | 164 | return $this; |
165 | 165 | } |
166 | 166 | |
167 | - public function getGlobalByValue(): bool|null |
|
167 | + public function getGlobalByValue(): bool | null |
|
168 | 168 | { |
169 | 169 | return $this->globalByValue; |
170 | 170 | } |
171 | 171 | |
172 | - protected function setEntityPrefix(string|null $entityPrefix): self |
|
172 | + protected function setEntityPrefix(string | null $entityPrefix): self |
|
173 | 173 | { |
174 | 174 | $this->entityPrefix = $entityPrefix; |
175 | 175 | |
176 | 176 | return $this; |
177 | 177 | } |
178 | 178 | |
179 | - public function getEntityPrefix(): string|null |
|
179 | + public function getEntityPrefix(): string | null |
|
180 | 180 | { |
181 | 181 | return $this->entityPrefix; |
182 | 182 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * This is the shared TypeManger for all Drivers |
20 | 20 | */ |
21 | - private static Type\TypeManager|null $typeManagerShared = null; |
|
21 | + private static Type\TypeManager | null $typeManagerShared = null; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @param string $entityManagerAlias required |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function __construct( |
29 | 29 | EntityManager $entityManager, |
30 | - Config|null $config = null, |
|
31 | - array|null $metadataConfig = null, |
|
30 | + Config | null $config = null, |
|
31 | + array | null $metadataConfig = null, |
|
32 | 32 | ) { |
33 | 33 | self::$typeManagerShared = self::$typeManagerShared ?? new Type\TypeManager(); |
34 | 34 | |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | ) |
49 | 49 | ->set( |
50 | 50 | Type\TypeManager::class, |
51 | - static function (ContainerInterface $container) { |
|
52 | - if (! $container->get(Config::class)->getSharedTypeManager()) { |
|
51 | + static function(ContainerInterface $container) { |
|
52 | + if (!$container->get(Config::class)->getSharedTypeManager()) { |
|
53 | 53 | return new Type\TypeManager(); |
54 | 54 | } |
55 | 55 | |
@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | ) |
59 | 59 | ->set( |
60 | 60 | Metadata\Metadata::class, |
61 | - static function (ContainerInterface $container) use ($metadataConfig) { |
|
61 | + static function(ContainerInterface $container) use ($metadataConfig) { |
|
62 | 62 | return (new Metadata\MetadataFactory($container, $metadataConfig))->getMetadata(); |
63 | 63 | }, |
64 | 64 | ) |
65 | 65 | ->set( |
66 | 66 | Resolve\FieldResolver::class, |
67 | - static function (ContainerInterface $container) { |
|
67 | + static function(ContainerInterface $container) { |
|
68 | 68 | return new Resolve\FieldResolver( |
69 | 69 | $container->get(Config::class), |
70 | 70 | $container->get(Metadata\Metadata::class), |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ) |
74 | 74 | ->set( |
75 | 75 | Resolve\ResolveCollectionFactory::class, |
76 | - static function (ContainerInterface $container) { |
|
76 | + static function(ContainerInterface $container) { |
|
77 | 77 | return new Resolve\ResolveCollectionFactory( |
78 | 78 | $container->get(EntityManager::class), |
79 | 79 | $container->get(Config::class), |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ) |
85 | 85 | ->set( |
86 | 86 | Resolve\ResolveEntityFactory::class, |
87 | - static function (ContainerInterface $container) { |
|
87 | + static function(ContainerInterface $container) { |
|
88 | 88 | return new Resolve\ResolveEntityFactory( |
89 | 89 | $container->get(Config::class), |
90 | 90 | $container->get(EntityManager::class), |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | ) |
95 | 95 | ->set( |
96 | 96 | Criteria\CriteriaFactory::class, |
97 | - static function (ContainerInterface $container) { |
|
97 | + static function(ContainerInterface $container) { |
|
98 | 98 | return new Criteria\CriteriaFactory( |
99 | 99 | $container->get(Config::class), |
100 | 100 | $container->get(EntityManager::class), |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | ) |
106 | 106 | ->set( |
107 | 107 | Hydrator\HydratorFactory::class, |
108 | - static function (ContainerInterface $container) { |
|
108 | + static function(ContainerInterface $container) { |
|
109 | 109 | return new Hydrator\HydratorFactory( |
110 | 110 | $container->get(EntityManager::class), |
111 | 111 | $container->get(Metadata\Metadata::class), |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | ) |
115 | 115 | ->set( |
116 | 116 | Input\InputFactory::class, |
117 | - static function (ContainerInterface $container) { |
|
117 | + static function(ContainerInterface $container) { |
|
118 | 118 | return new Input\InputFactory( |
119 | 119 | $container->get(Config::class), |
120 | 120 | $container->get(EntityManager::class), |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | }, |
125 | 125 | ); |
126 | 126 | |
127 | - if (! $this->get(Config::class)->getGlobalEnable()) { |
|
127 | + if (!$this->get(Config::class)->getGlobalEnable()) { |
|
128 | 128 | return; |
129 | 129 | } |
130 | 130 |