Passed
Push — master ( 4f8805...e8d917 )
by Markus
04:10
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
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
             ?? $this->fieldFromArray($source, $args, $context, $info)
186 186
             ?? $this->fieldFromObject($source, $args, $context, $info);
187 187
 
188
-        return call(static function () use ($field, $source, $args, $context, $info) {
188
+        return call(static function() use ($field, $source, $args, $context, $info) {
189 189
             if (function_exists('enum_exists') && $field instanceof \BackedEnum) {
190 190
                 return $field->value;
191 191
             }
@@ -220,10 +220,10 @@  discard block
 block discarded – undo
220 220
     {
221 221
         if (is_array($source) || $source instanceof \ArrayAccess) {
222 222
             return collect($this->propertyNames($info))
223
-                ->map(function ($propertyName) use ($source) {
223
+                ->map(function($propertyName) use ($source) {
224 224
                     return $source[$propertyName] ?? null;
225 225
                 })
226
-                ->reject(function ($value) {
226
+                ->reject(function($value) {
227 227
                     return is_null($value);
228 228
                 })
229 229
                 ->first();
@@ -234,10 +234,10 @@  discard block
 block discarded – undo
234 234
     {
235 235
         if (is_object($source)) {
236 236
             return collect($this->propertyNames($info))
237
-                ->map(function ($propertyName) use ($source) {
237
+                ->map(function($propertyName) use ($source) {
238 238
                     return $source->{$propertyName} ?? null;
239 239
                 })
240
-                ->reject(function ($value) {
240
+                ->reject(function($value) {
241 241
                     return is_null($value);
242 242
                 })
243 243
                 ->first();
Please login to merge, or discard this patch.