@@ -152,7 +152,9 @@ discard block |
||
| 152 | 152 | protected function collectValueForQueryWithType(Query $query, AbstractType $fieldType, $resolvedValue) |
| 153 | 153 | { |
| 154 | 154 | $fieldType = $this->resolveValidator->resolveTypeIfAbstract($fieldType, $resolvedValue); |
| 155 | - if (is_null($resolvedValue)) return null; |
|
| 155 | + if (is_null($resolvedValue)) { |
|
| 156 | + return null; |
|
| 157 | + } |
|
| 156 | 158 | |
| 157 | 159 | $value = []; |
| 158 | 160 | if ($fieldType->getKind() == TypeMap::KIND_LIST) { |
@@ -234,8 +236,7 @@ discard block |
||
| 234 | 236 | $this->resolverStringResolver && ($resolveString = $field->getConfig()->getResolveString()) && ($resolveFunc = $this->resolverStringResolver->resolve($resolveString)) |
| 235 | 237 | )) { |
| 236 | 238 | return $resolveFunc($contextValue, $this->parseArgumentsValues($field, $query), $resolveInfo); |
| 237 | - } |
|
| 238 | - elseif ($propertyValue = TypeService::getPropertyValue($contextValue, $field->getName())) { |
|
| 239 | + } elseif ($propertyValue = TypeService::getPropertyValue($contextValue, $field->getName())) { |
|
| 239 | 240 | return $propertyValue; |
| 240 | 241 | } else { |
| 241 | 242 | return $field->resolve($contextValue, $this->parseArgumentsValues($field, $query), $resolveInfo); |
@@ -93,9 +93,9 @@ |
||
| 93 | 93 | return $this->get('resolve', null); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - /** |
|
| 97 | - * @return string|null |
|
| 98 | - */ |
|
| 96 | + /** |
|
| 97 | + * @return string|null |
|
| 98 | + */ |
|
| 99 | 99 | public function getResolveString() |
| 100 | 100 | { |
| 101 | 101 | return $this->get('resolveString', null); |