@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | $typeConfig = $this->getConfig(); |
57 | - $requiredFields = array_filter($typeConfig->getFields(), function (FieldInterface $field) { |
|
57 | + $requiredFields = array_filter($typeConfig->getFields(), function(FieldInterface $field) { |
|
58 | 58 | return $field->getType()->getKind() == TypeMap::KIND_NON_NULL; |
59 | 59 | }); |
60 | 60 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | public function parseValue($value) |
88 | 88 | { |
89 | 89 | if (is_null($value)) return null; |
90 | - if($value instanceof InputObject) { |
|
90 | + if ($value instanceof InputObject) { |
|
91 | 91 | $value = $value->getValue(); |
92 | 92 | } |
93 | 93 |
@@ -86,7 +86,9 @@ |
||
86 | 86 | |
87 | 87 | public function parseValue($value) |
88 | 88 | { |
89 | - if (is_null($value)) return null; |
|
89 | + if (is_null($value)) { |
|
90 | + return null; |
|
91 | + } |
|
90 | 92 | if($value instanceof InputObject) { |
91 | 93 | $value = $value->getValue(); |
92 | 94 | } |