@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | public function listen(ReflectionClass $class): void |
| 35 | 35 | { |
| 36 | - if (! $this->isValid($class)) { |
|
| 36 | + if (!$this->isValid($class)) { |
|
| 37 | 37 | return; |
| 38 | 38 | } |
| 39 | 39 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | $typeName = (string) $type; |
| 47 | 47 | |
| 48 | - if (! $this->typeRegistry->has($typeName)) { |
|
| 48 | + if (!$this->typeRegistry->has($typeName)) { |
|
| 49 | 49 | \assert($type instanceof NamedType); |
| 50 | 50 | $this->typeRegistry->register($type, $class->getName()); |
| 51 | 51 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $attribute = $this->reader->firstClassMetadata($class, AbstractType::class); |
| 61 | 61 | |
| 62 | 62 | if ($attribute instanceof ObjectType || $attribute instanceof InputObjectType) { |
| 63 | - return ! $class->isAbstract() && ! $class->isTrait() && ! $class->isEnum(); |
|
| 63 | + return !$class->isAbstract() && !$class->isTrait() && !$class->isEnum(); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | if ($attribute instanceof EnumType) { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | public function finalize(): void |
| 38 | 38 | { |
| 39 | 39 | $query = $this->typeRegistry->get($this->config->getQueryType()); |
| 40 | - if (! $query instanceof DynamicObjectTypeInterface) { |
|
| 40 | + if (!$query instanceof DynamicObjectTypeInterface) { |
|
| 41 | 41 | return; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | ? $this->typeRegistry->get($type) |
| 43 | 43 | : null; |
| 44 | 44 | |
| 45 | - if (! $mutation instanceof DynamicObjectTypeInterface) { |
|
| 45 | + if (!$mutation instanceof DynamicObjectTypeInterface) { |
|
| 46 | 46 | return; |
| 47 | 47 | } |
| 48 | 48 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | $console->addCommand(ConfigCommand::class); |
| 89 | - $kernel->bootstrapped(static function (Schema $schema): void { |
|
| 89 | + $kernel->bootstrapped(static function(Schema $schema): void { |
|
| 90 | 90 | SchemaWarmupper::warmup($schema); |
| 91 | 91 | }); |
| 92 | 92 | } |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | TypeResolverInterface $typeResolver, |
| 160 | 160 | ): void { |
| 161 | 161 | foreach ($types as $name => $aliases) { |
| 162 | - $aliases = (array)$aliases; |
|
| 162 | + $aliases = (array) $aliases; |
|
| 163 | 163 | if (\is_int($name)) { |
| 164 | 164 | $name = \array_shift($aliases); |
| 165 | 165 | } |