Skip to content

Commit

Permalink
Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vmalyk committed Oct 22, 2024
1 parent d04d0ff commit f68a2d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/GraphQL/DataObjectTypeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 1 addition & 2 deletions src/GraphQL/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,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);;
}

/**
Expand Down

0 comments on commit f68a2d0

Please sign in to comment.