Skip to content

Commit 9b2297a

Browse files
committed
update variable name
1 parent fe9d262 commit 9b2297a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/internal/Magento/Framework/GraphQl/Schema/Type/ScalarTypes.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class ScalarTypes
2020
*/
2121
public function isScalarType(string $typeName) : bool
2222
{
23-
$internalTypes = \GraphQL\Type\Definition\Type::getStandardTypes();
24-
return isset($internalTypes[$typeName]) ? true : false;
23+
$standardTypes = \GraphQL\Type\Definition\Type::getStandardTypes();
24+
return isset($standardTypes[$typeName]) ? true : false;
2525
}
2626

2727
/**
@@ -33,9 +33,9 @@ public function isScalarType(string $typeName) : bool
3333
*/
3434
public function getScalarTypeInstance(string $typeName) : \GraphQL\Type\Definition\Type
3535
{
36-
$internalTypes = \GraphQL\Type\Definition\Type::getStandardTypes();
36+
$standardTypes = \GraphQL\Type\Definition\Type::getStandardTypes();
3737
if ($this->isScalarType($typeName)) {
38-
return $internalTypes[$typeName];
38+
return $standardTypes[$typeName];
3939
} else {
4040
throw new \LogicException(sprintf('Scalar type %s doesn\'t exist', $typeName));
4141
}

0 commit comments

Comments
 (0)