@@ -24,8 +24,8 @@ |
||
24 | 24 | ->addField('kind', TypeMap::TYPE_STRING) |
25 | 25 | ->addField('description', TypeMap::TYPE_STRING) |
26 | 26 | ->addField('ofType', new QueryType(), [ |
27 | - 'resolve' => function ($value) { |
|
28 | - if($value->getKind() == TypeMap::KIND_LIST){ |
|
27 | + 'resolve' => function($value) { |
|
28 | + if ($value->getKind() == TypeMap::KIND_LIST) { |
|
29 | 29 | return $value->getConfig()->getItem(); |
30 | 30 | } |
31 | 31 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | ->addField('type', new QueryType(), [ |
27 | 27 | 'resolve' => function($value, $args) { |
28 | 28 | /** @var $value Field */ |
29 | - if($value->getConfig()->getType()->getKind() == TypeMap::KIND_INPUT_OBJECT) { |
|
29 | + if ($value->getConfig()->getType()->getKind() == TypeMap::KIND_INPUT_OBJECT) { |
|
30 | 30 | return $value->getConfig()->getType()->getConfig()->getOutputType(); |
31 | 31 | } |
32 | 32 |