@@ -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 |
@@ -42,12 +42,12 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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), |