Test Setup Failed
Pull Request — master (#48)
by
unknown
07:50
created
src/RealTimeClient.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->apiCall('rtm.start')
79 79
 
80 80
         // then connect to the socket...
81
-        ->then(function (Payload $response) {
81
+        ->then(function(Payload $response) {
82 82
             $responseData = $response->getData();
83 83
             // get the team info
84 84
             $this->team = new Team($this, $responseData['team']);
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
             // initiate the websocket connection
119 119
             $this->websocket = new WebSocket($responseData['url'], $this->loop, $logger);
120
-            $this->websocket->on('message', function ($message) {
120
+            $this->websocket->on('message', function($message) {
121 121
                 $this->onMessage($message);
122 122
             });
123 123
 
@@ -125,18 +125,18 @@  discard block
 block discarded – undo
125 125
         }, function($exception) use ($deferred) {
126 126
             // if connection was not succesfull
127 127
             $deferred->reject(new ConnectionException(
128
-                'Could not connect to Slack API: '. $exception->getMessage(),
128
+                'Could not connect to Slack API: '.$exception->getMessage(),
129 129
                 $exception->getCode()
130 130
             ));
131 131
         })
132 132
 
133 133
         // then wait for the connection to be ready.
134
-        ->then(function () use ($deferred) {
135
-            $this->once('hello', function () use ($deferred) {
134
+        ->then(function() use ($deferred) {
135
+            $this->once('hello', function() use ($deferred) {
136 136
                 $deferred->resolve();
137 137
             });
138 138
 
139
-            $this->once('error', function ($data) use ($deferred) {
139
+            $this->once('error', function($data) use ($deferred) {
140 140
                 $deferred->reject(new ConnectionException(
141 141
                     'Could not connect to WebSocket: '.$data['error']['msg'],
142 142
                     $data['error']['code']));
Please login to merge, or discard this patch.