Completed
Push — master ( 095f71...e96d59 )
by Guillaume
02:46
created
src/vendor/guzzlehttp/promises/src/FulfilledPromise.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $queue = queue();
34 34
         $p = new Promise([$queue, 'run']);
35 35
         $value = $this->value;
36
-        $queue->add(static function () use ($p, $value, $onFulfilled) {
36
+        $queue->add(static function() use ($p, $value, $onFulfilled) {
37 37
             if ($p->getState() === self::PENDING) {
38 38
                 try {
39 39
                     $p->resolve($onFulfilled($value));
Please login to merge, or discard this patch.
src/vendor/guzzlehttp/promises/src/EachPromise.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     private function createPromise()
88 88
     {
89 89
         $this->mutex = false;
90
-        $this->aggregate = new Promise(function () {
90
+        $this->aggregate = new Promise(function() {
91 91
             reset($this->pending);
92 92
             if (empty($this->pending) && !$this->iterable->valid()) {
93 93
                 $this->aggregate->resolve(null);
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         });
107 107
 
108 108
         // Clear the references when the promise is resolved.
109
-        $clearFn = function () {
109
+        $clearFn = function() {
110 110
             $this->iterable = $this->concurrency = $this->pending = null;
111 111
             $this->onFulfilled = $this->onRejected = null;
112 112
         };
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         $idx = $this->iterable->key();
153 153
 
154 154
         $this->pending[$idx] = $promise->then(
155
-            function ($value) use ($idx) {
155
+            function($value) use ($idx) {
156 156
                 if ($this->onFulfilled) {
157 157
                     call_user_func(
158 158
                         $this->onFulfilled, $value, $idx, $this->aggregate
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 }
161 161
                 $this->step($idx);
162 162
             },
163
-            function ($reason) use ($idx) {
163
+            function($reason) use ($idx) {
164 164
                 if ($this->onRejected) {
165 165
                     call_user_func(
166 166
                         $this->onRejected, $reason, $idx, $this->aggregate
Please login to merge, or discard this patch.