Completed
Pull Request — master (#35)
by Timo
03:02
created
src/Tidal/WampWatch/Subscription/Collection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     protected function doSubscribe()
103 103
     {
104
-        \React\Promise\all($this->getSubscriptionPromises())->done(function () {
104
+        \React\Promise\all($this->getSubscriptionPromises())->done(function() {
105 105
             $this->isSubscribed = true;
106 106
             $this->isSubscribing = false;
107 107
             $this->subscriptionPromise->resolve($this->subscriptions);
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         foreach (array_keys($this->subscriptions) as $topic) {
119 119
             $promises[] = $this->session->subscribe($topic, $this->subscriptionCallbacks[$topic])
120
-                ->then(function (SubscribedMessage $msg) use ($topic) {
120
+                ->then(function(SubscribedMessage $msg) use ($topic) {
121 121
                     $this->subscriptions[$topic] = $msg->getSubscriptionId();
122 122
                     $this->subscriptionPromise->notify($topic);
123 123
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function unsubscribe()
135 135
     {
136
-        $resolver = function (callable $resolve) {
136
+        $resolver = function(callable $resolve) {
137 137
             $resolve();
138 138
         };
139 139
         $promise = new  Promise($resolver);
Please login to merge, or discard this patch.
src/Tidal/WampWatch/MonitorTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $this->callInitialProcedure(),
80 80
         ];
81 81
 
82
-        \React\Promise\all($promises)->done(function () {
82
+        \React\Promise\all($promises)->done(function() {
83 83
             $this->isRunning = true;
84 84
             $this->emit('start', [$this->getList()]);
85 85
         });
@@ -164,12 +164,12 @@  discard block
 block discarded – undo
164 164
         if (!isset($this->initialCallProcedure) || !isset($this->initialCallCallback)) {
165 165
             $this->initialCallDone = true;
166 166
 
167
-            return new  Promise(function (callable $resolve) {
167
+            return new  Promise(function(callable $resolve) {
168 168
                 $resolve();
169 169
             });
170 170
         }
171 171
 
172
-        return $this->session->call($this->initialCallProcedure, [])->then(function ($res) {
172
+        return $this->session->call($this->initialCallProcedure, [])->then(function($res) {
173 173
             $this->initialCallDone = true;
174 174
             $cb = $this->initialCallCallback;
175 175
             $cb($res);
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
     private function getErrorCallback()
184 184
     {
185
-        return function ($error) {
185
+        return function($error) {
186 186
             $this->emit('error', [$error]);
187 187
 
188 188
             return $error;
Please login to merge, or discard this patch.