Passed
Push — master ( 45bd3d...96d191 )
by
unknown
04:02
created
src/Concerns/HandlesGraphqlRequests.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                 $operationName,
70 70
                 [$this, 'resolveField'],
71 71
                 null // validationRules
72
-            )->then(function ($value) use (&$result) {
72
+            )->then(function($value) use (&$result) {
73 73
                 $result = $value;
74 74
             });
75 75
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             ?? $this->fieldFromObject($source, $args, $context, $info)
187 187
             ?? $this->fieldFromEnum($source, $args, $context, $info);
188 188
 
189
-        return call(static function () use ($field, $source, $args, $context, $info) {
189
+        return call(static function() use ($field, $source, $args, $context, $info) {
190 190
             return $field instanceof \Closure
191 191
                 ? $field($source, $args, $context, $info)
192 192
                 : $field;
@@ -217,10 +217,10 @@  discard block
 block discarded – undo
217 217
     {
218 218
         if (is_array($source) || $source instanceof \ArrayAccess) {
219 219
             return collect($this->propertyNames($info))
220
-                ->map(function ($propertyName) use ($source) {
220
+                ->map(function($propertyName) use ($source) {
221 221
                     return $source[$propertyName] ?? null;
222 222
                 })
223
-                ->reject(function ($value) {
223
+                ->reject(function($value) {
224 224
                     return is_null($value);
225 225
                 })
226 226
                 ->first();
@@ -231,10 +231,10 @@  discard block
 block discarded – undo
231 231
     {
232 232
         if (is_object($source)) {
233 233
             return collect($this->propertyNames($info))
234
-                ->map(function ($propertyName) use ($source) {
234
+                ->map(function($propertyName) use ($source) {
235 235
                     return $source->{$propertyName} ?? null;
236 236
                 })
237
-                ->reject(function ($value) {
237
+                ->reject(function($value) {
238 238
                     return is_null($value);
239 239
                 })
240 240
                 ->first();
Please login to merge, or discard this patch.