Completed
Push — master ( f1bb68...f91685 )
by Alexandr
03:16
created
src/Execution/Processor.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -148,11 +148,15 @@
 block discarded – undo
148 148
     protected function collectValueForQueryWithType(Query $query, AbstractType $fieldType, $resolvedValue)
149 149
     {
150 150
         $fieldType = $this->resolveValidator->resolveTypeIfAbstract($fieldType, $resolvedValue);
151
-        if (is_null($resolvedValue)) return null;
151
+        if (is_null($resolvedValue)) {
152
+            return null;
153
+        }
152 154
 
153 155
         $value = [];
154 156
         if ($fieldType->getKind() == TypeMap::KIND_LIST) {
155
-            if (!$this->resolveValidator->hasArrayAccess($resolvedValue)) return null;
157
+            if (!$this->resolveValidator->hasArrayAccess($resolvedValue)) {
158
+                return null;
159
+            }
156 160
             foreach ($resolvedValue as $resolvedValueItem) {
157 161
                 $value[] = [];
158 162
                 $index   = count($value) - 1;
Please login to merge, or discard this patch.