Passed
Push — master ( e8d917...45bd3d )
by Markus
04:13
created
src/DataLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function __invoke($batchLoadFunction, $defaultResolveValue = null)
18 18
     {
19
-        if (! $batchLoadFunction instanceof Closure) {
19
+        if (!$batchLoadFunction instanceof Closure) {
20 20
             $batchLoadFunction = Closure::fromCallable($batchLoadFunction);
21 21
         }
22 22
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
             private function scheduleResolveIfNeeded()
61 61
             {
62
-                if (! $this->needsResolving) {
62
+                if (!$this->needsResolving) {
63 63
                     Loop::defer(Closure::fromCallable([$this, 'resolve']));
64 64
                     $this->needsResolving = true;
65 65
                 }
Please login to merge, or discard this patch.
src/Concerns/AssertsPromises.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 
26 26
         try {
27 27
             $result = null;
28
-            Loop::run(function () use (&$result, $promise) {
29
-                $result = yield call(function () use ($promise) {
28
+            Loop::run(function() use (&$result, $promise) {
29
+                $result = yield call(function() use ($promise) {
30 30
                     return $promise;
31 31
                 });
32 32
             });
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             return;
40 40
         }
41 41
 
42
-        if (! is_null($expectedValue)) {
42
+        if (!is_null($expectedValue)) {
43 43
             $this->assertSame(
44 44
                 $expectedValue,
45 45
                 $result,
Please login to merge, or discard this patch.
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.