Completed
Push — master ( 4399f1...428ab2 )
by
unknown
04:54
created
src/Concerns/HandlesGraphqlRequests.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             $request->input('operationName'),
46 46
             [$this, 'resolveField'],
47 47
             null // validationRules
48
-        )->then(function ($value) use (&$result) {
48
+        )->then(function($value) use (&$result) {
49 49
             $result = $value;
50 50
         });
51 51
 
@@ -155,10 +155,10 @@  discard block
 block discarded – undo
155 155
     {
156 156
         if (is_array($source) || $source instanceof \ArrayAccess) {
157 157
             return collect($this->propertyNames($info))
158
-                ->map(function ($propertyName) use ($source) {
158
+                ->map(function($propertyName) use ($source) {
159 159
                     return $source[$propertyName] ?? null;
160 160
                 })
161
-                ->reject(function ($value) {
161
+                ->reject(function($value) {
162 162
                     return is_null($value);
163 163
                 })
164 164
                 ->first();
@@ -169,10 +169,10 @@  discard block
 block discarded – undo
169 169
     {
170 170
         if (is_object($source)) {
171 171
             return collect($this->propertyNames($info))
172
-                ->map(function ($propertyName) use ($source) {
172
+                ->map(function($propertyName) use ($source) {
173 173
                     return $source->{$propertyName} ?? null;
174 174
                 })
175
-                ->reject(function ($value) {
175
+                ->reject(function($value) {
176 176
                     return is_null($value);
177 177
                 })
178 178
                 ->first();
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             \GraphQL\Executor\Promise\Adapter\ReactPromiseAdapter::class
22 22
         );
23 23
 
24
-        $this->app->bind(\React\EventLoop\LoopInterface::class, function () {
24
+        $this->app->bind(\React\EventLoop\LoopInterface::class, function() {
25 25
             return ReactEventLoopFactory::create();
26 26
         });
27 27
     }
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
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function __invoke($batchLoadFunction)
27 27
     {
28
-        if (! $batchLoadFunction instanceof Closure) {
28
+        if (!$batchLoadFunction instanceof Closure) {
29 29
             $batchLoadFunction = Closure::fromCallable($batchLoadFunction);
30 30
         }
31 31
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     private function makeLoader(Closure $batchLoadFunction)
47 47
     {
48 48
         return new LeinonenDataLoader(
49
-            function (...$arguments) use ($batchLoadFunction) {
49
+            function(...$arguments) use ($batchLoadFunction) {
50 50
                 $result = $batchLoadFunction(...$arguments);
51 51
                 if ($result instanceof Collection) {
52 52
                     $result = $result->all();
Please login to merge, or discard this patch.