From 305efc6517b293a935d4148243db7eb33da8ac58 Mon Sep 17 00:00:00 2001 From: Vladimir Malik Date: Tue, 22 Oct 2024 16:43:29 +0200 Subject: [PATCH] Code style fixes --- src/GraphQL/DataObjectTypeFactory.php | 8 +++++++- src/GraphQL/Service.php | 4 +--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/GraphQL/DataObjectTypeFactory.php b/src/GraphQL/DataObjectTypeFactory.php index 65c23eac..291f219c 100644 --- a/src/GraphQL/DataObjectTypeFactory.php +++ b/src/GraphQL/DataObjectTypeFactory.php @@ -44,7 +44,13 @@ public function build(string $className, $config = [], $context = []) { if (!isset(self::$registry[$className])) { $class = ClassDefinition::getByName($className); - $operatorImpl = new $this->className($this->getGraphQlService(), $className, $class->getId(), $config, $context); + $operatorImpl = new $this->className( + $this->getGraphQlService(), + $className, + $class->getId(), + $config, + $context + ); self::$registry[$className] = $operatorImpl; } diff --git a/src/GraphQL/Service.php b/src/GraphQL/Service.php index e4fffa2f..b59ad122 100644 --- a/src/GraphQL/Service.php +++ b/src/GraphQL/Service.php @@ -428,7 +428,6 @@ public function buildGeneralType($typeName) } /** - * @param string $className * @param array $config * @param array $context * @@ -439,9 +438,8 @@ public function buildGeneralType($typeName) public function buildDataObjectType(string $className, $config = [], $context = []) { $factory = $this->generalTypeGeneratorFactories->get('object'); - $result = $factory->build($className, $config, $context); - return $result; + return $factory->build($className, $config, $context); } /**