File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/internal/Magento/Framework/GraphQl/Schema/Type Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ class ScalarTypes
20
20
*/
21
21
public function isScalarType (string $ typeName ) : bool
22
22
{
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 ;
25
25
}
26
26
27
27
/**
@@ -33,9 +33,9 @@ public function isScalarType(string $typeName) : bool
33
33
*/
34
34
public function getScalarTypeInstance (string $ typeName ) : \GraphQL \Type \Definition \Type
35
35
{
36
- $ internalTypes = \GraphQL \Type \Definition \Type::getStandardTypes ();
36
+ $ standardTypes = \GraphQL \Type \Definition \Type::getStandardTypes ();
37
37
if ($ this ->isScalarType ($ typeName )) {
38
- return $ internalTypes [$ typeName ];
38
+ return $ standardTypes [$ typeName ];
39
39
} else {
40
40
throw new \LogicException (sprintf ('Scalar type %s doesn \'t exist ' , $ typeName ));
41
41
}
You can’t perform that action at this time.
0 commit comments