@@ -36,16 +36,16 @@ |
||
36 | 36 | $outputType = $type->getConfig()->getOutputType(); |
37 | 37 | |
38 | 38 | if ($outputType) { |
39 | - if($this->insertType($outputType->getName(), $outputType)) { |
|
39 | + if ($this->insertType($outputType->getName(), $outputType)) { |
|
40 | 40 | $this->collectFieldsArgsTypes($outputType); |
41 | 41 | } |
42 | 42 | } |
43 | 43 | } else { |
44 | 44 | $interfaces = $type->getConfig()->getInterfaces(); |
45 | 45 | |
46 | - if(is_array($interfaces) && $interfaces) { |
|
47 | - foreach($interfaces as $interface){ |
|
48 | - if($this->insertType($interface->getName(), $interface)){ |
|
46 | + if (is_array($interfaces) && $interfaces) { |
|
47 | + foreach ($interfaces as $interface) { |
|
48 | + if ($this->insertType($interface->getName(), $interface)) { |
|
49 | 49 | $this->collectFieldsArgsTypes($interface); |
50 | 50 | } |
51 | 51 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | ->addField('subscriptionType', new ObjectType([ |
57 | 57 | 'name' => '__Subscription', |
58 | 58 | 'fields' => ['name' => ['type' => TypeMap::TYPE_STRING]], |
59 | - 'resolve' => function () { return []; } |
|
59 | + 'resolve' => function() { return []; } |
|
60 | 60 | ])) |
61 | 61 | ->addField('types', new QueryListType()) |
62 | 62 | ->addField('directives', new DirectiveListType()); |