Passed
Pull Request — master (#52)
by Markus
03:03
created
src/Concerns/HandlesGraphqlRequests.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 $operationName,
73 73
                 [$this, 'resolveField'],
74 74
                 null // validationRules
75
-            )->then(function ($value) use (&$result) {
75
+            )->then(function($value) use (&$result) {
76 76
                 $result = $value;
77 77
             });
78 78
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
             $field = $field->value;
193 193
         }
194 194
 
195
-        return call(static function () use ($field, $source, $args, $context, $info) {
195
+        return call(static function() use ($field, $source, $args, $context, $info) {
196 196
             return $field instanceof \Closure
197 197
                 ? $field($source, $args, $context, $info)
198 198
                 : $field;
@@ -223,14 +223,14 @@  discard block
 block discarded – undo
223 223
     {
224 224
         if (is_array($source) || $source instanceof \ArrayAccess) {
225 225
             return collect($this->propertyNames($info))
226
-                ->map(function ($propertyName) use ($source) {
226
+                ->map(function($propertyName) use ($source) {
227 227
                     try {
228 228
                         return $source[$propertyName] ?? null;
229 229
                     } catch (MissingAttributeException) {
230 230
                         return null;
231 231
                     }
232 232
                 })
233
-                ->reject(function ($value) {
233
+                ->reject(function($value) {
234 234
                     return is_null($value);
235 235
                 })
236 236
                 ->first();
@@ -241,14 +241,14 @@  discard block
 block discarded – undo
241 241
     {
242 242
         if (is_object($source)) {
243 243
             return collect($this->propertyNames($info))
244
-                ->map(function ($propertyName) use ($source) {
244
+                ->map(function($propertyName) use ($source) {
245 245
                     try {
246 246
                         return $source->{$propertyName} ?? null;
247 247
                     } catch (MissingAttributeException) {
248 248
                         return null;
249 249
                     }
250 250
                 })
251
-                ->reject(function ($value) {
251
+                ->reject(function($value) {
252 252
                     return is_null($value);
253 253
                 })
254 254
                 ->first();
Please login to merge, or discard this patch.