Completed
Pull Request — master (#19)
by Daniel
03:45
created
src/Execution/Processor.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -152,7 +152,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Config/AbstractConfig.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,9 +93,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.