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 305efc6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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
4 changes: 1 addition & 3 deletions src/GraphQL/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ public function buildGeneralType($typeName)
}

/**
* @param string $className
* @param array $config
* @param array $context
*
Expand All @@ -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);
}

/**
Expand Down

0 comments on commit 305efc6

Please sign in to comment.