Passed
Push — master ( 73b946...893eb4 )
by
unknown
09:22
created
src/Concerns/HandlesGraphqlRequests.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             $request->input('operationName'),
59 59
             [$this, 'resolveField'],
60 60
             null // validationRules
61
-        )->then(function ($value) use (&$result) {
61
+        )->then(function($value) use (&$result) {
62 62
             $result = $value;
63 63
         });
64 64
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             ?? $this->fieldFromArray($source, $args, $context, $info)
150 150
             ?? $this->fieldFromObject($source, $args, $context, $info);
151 151
 
152
-        return call(static function () use ($field, $source, $args, $context, $info) {
152
+        return call(static function() use ($field, $source, $args, $context, $info) {
153 153
             return $field instanceof \Closure
154 154
                 ? $field($source, $args, $context, $info)
155 155
                 : $field;
@@ -180,10 +180,10 @@  discard block
 block discarded – undo
180 180
     {
181 181
         if (is_array($source) || $source instanceof \ArrayAccess) {
182 182
             return collect($this->propertyNames($info))
183
-                ->map(function ($propertyName) use ($source) {
183
+                ->map(function($propertyName) use ($source) {
184 184
                     return $source[$propertyName] ?? null;
185 185
                 })
186
-                ->reject(function ($value) {
186
+                ->reject(function($value) {
187 187
                     return is_null($value);
188 188
                 })
189 189
                 ->first();
@@ -194,10 +194,10 @@  discard block
 block discarded – undo
194 194
     {
195 195
         if (is_object($source)) {
196 196
             return collect($this->propertyNames($info))
197
-                ->map(function ($propertyName) use ($source) {
197
+                ->map(function($propertyName) use ($source) {
198 198
                     return $source->{$propertyName} ?? null;
199 199
                 })
200
-                ->reject(function ($value) {
200
+                ->reject(function($value) {
201 201
                     return is_null($value);
202 202
                 })
203 203
                 ->first();
Please login to merge, or discard this patch.
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.