@@ -50,7 +50,7 @@ |
||
50 | 50 | { |
51 | 51 | $attributes = $this->getQueue($queue)->get_attributes(); |
52 | 52 | |
53 | - return (int) $attributes->activeMsgNum; |
|
53 | + return (int)$attributes->activeMsgNum; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | } else { |
187 | 187 | $msgBody = $message->msgBody; |
188 | 188 | } |
189 | - $params = array( |
|
189 | + $params = array( |
|
190 | 190 | 'queueName' => $this->queue_name, |
191 | 191 | 'msgBody' => $msgBody, |
192 | 192 | 'delaySeconds' => $delayTime |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | 'queueName' => $this->queue_name, |
213 | 213 | 'delaySeconds' => $delayTime |
214 | 214 | ); |
215 | - $n = 1; |
|
215 | + $n = 1; |
|
216 | 216 | foreach ($messages as $message) { |
217 | 217 | $key = 'msgBody.' . $n; |
218 | 218 | if ($this->encoding) { |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | foreach ($receipt_handle_list as $receipt_handle) { |
325 | 325 | $key = 'receiptHandle.' . $n; |
326 | 326 | $params[$key] = $receipt_handle; |
327 | - $n += 1; |
|
327 | + $n += 1; |
|
328 | 328 | } |
329 | 329 | $this->cmq_client->batch_delete_message($params); |
330 | 330 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | foreach ($subscription_meta->bindindKey as $tag) { |
47 | 47 | $key = 'bindindKey.' . $n; |
48 | 48 | $params[$key] = $tag; |
49 | - $n += 1; |
|
49 | + $n += 1; |
|
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | foreach ($subscription_meta->FilterTag as $tag) { |
56 | 56 | $key = 'filterTag.' . $n; |
57 | 57 | $params[$key] = $tag; |
58 | - $n += 1; |
|
58 | + $n += 1; |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 | $this->cmq_client->create_subscription($params); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | foreach ($subscription_meta->bindindKey as $tag) { |
172 | 172 | $key = 'bindindKey.' . $n; |
173 | 173 | $params[$key] = $tag; |
174 | - $n += 1; |
|
174 | + $n += 1; |
|
175 | 175 | } |
176 | 176 | } |
177 | 177 | |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | foreach ($subscription_meta->FilterTag as $tag) { |
181 | 181 | $key = 'filterTag.' . $n; |
182 | 182 | $params[$key] = $tag; |
183 | - $n += 1; |
|
183 | + $n += 1; |
|
184 | 184 | } |
185 | 185 | } |
186 | 186 |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | foreach ($vTagList as $tag) { |
148 | 148 | $key = 'msgTag.' . $n; |
149 | 149 | $params[$key] = $tag; |
150 | - $n += 1; |
|
150 | + $n += 1; |
|
151 | 151 | } |
152 | 152 | } |
153 | 153 | $msgId = $this->cmq_client->publish_message($params); |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | foreach ($vtagList as $tag) { |
200 | 200 | $key = 'msgTag.' . $n; |
201 | 201 | $params[$key] = $tag; |
202 | - $n += 1; |
|
202 | + $n += 1; |
|
203 | 203 | } |
204 | 204 | } |
205 | 205 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | $topic = new Account(array_get($config, 'options.topic.host'), $config['secret_id'], $config['secret_key']); |
36 | 36 | |
37 | - $this->dispatcher->listen(WorkerStopping::class, function () { |
|
37 | + $this->dispatcher->listen(WorkerStopping::class, function() { |
|
38 | 38 | // |
39 | 39 | }); |
40 | 40 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** @var QueueManager $queue */ |
31 | 31 | $queue = $this->app['queue']; |
32 | 32 | |
33 | - $queue->addConnector('cmq', function () { |
|
33 | + $queue->addConnector('cmq', function() { |
|
34 | 34 | return new CMQConnector($this->app['events']); |
35 | 35 | }); |
36 | 36 | } |