@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | ]; |
216 | 216 | $n = 1; |
217 | 217 | foreach ($messages as $message) { |
218 | - $key = 'msgBody.'.$n; |
|
218 | + $key = 'msgBody.' . $n; |
|
219 | 219 | if ($this->encoding) { |
220 | 220 | $params[$key] = base64_encode($message->msgBody); |
221 | 221 | } else { |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | $params = ['queueName' => $this->queue_name]; |
326 | 326 | $n = 1; |
327 | 327 | foreach ($receipt_handle_list as $receipt_handle) { |
328 | - $key = 'receiptHandle.'.$n; |
|
328 | + $key = 'receiptHandle.' . $n; |
|
329 | 329 | $params[$key] = $receipt_handle; |
330 | 330 | $n += 1; |
331 | 331 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | $this->mergeConfigFrom( |
24 | - __DIR__.'/../config/cmq.php', 'queue.connections.cmq' |
|
24 | + __DIR__ . '/../config/cmq.php', 'queue.connections.cmq' |
|
25 | 25 | ); |
26 | 26 | } |
27 | 27 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | /** @var QueueManager $queue */ |
36 | 36 | $queue = $this->app['queue']; |
37 | 37 | |
38 | - $queue->addConnector('cmq', function () { |
|
38 | + $queue->addConnector('cmq', function() { |
|
39 | 39 | return new CMQConnector(); |
40 | 40 | }); |
41 | 41 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | if (is_array($subscription_meta->bindingKey) && !empty($subscription_meta->bindingKey)) { |
45 | 45 | $n = 1; |
46 | 46 | foreach ($subscription_meta->bindingKey as $tag) { |
47 | - $key = 'bindingKey.'.$n; |
|
47 | + $key = 'bindingKey.' . $n; |
|
48 | 48 | $params[$key] = $tag; |
49 | 49 | $n += 1; |
50 | 50 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | if (is_array($subscription_meta->FilterTag) && !empty($subscription_meta->FilterTag)) { |
54 | 54 | $n = 1; |
55 | 55 | foreach ($subscription_meta->FilterTag as $tag) { |
56 | - $key = 'filterTag.'.$n; |
|
56 | + $key = 'filterTag.' . $n; |
|
57 | 57 | $params[$key] = $tag; |
58 | 58 | $n += 1; |
59 | 59 | } |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | if (is_array($subscription_meta->bindingKey) && !empty($subscription_meta->bindingKey)) { |
166 | 166 | $n = 1; |
167 | 167 | foreach ($subscription_meta->bindingKey as $tag) { |
168 | - $key = 'bindingKey.'.$n; |
|
168 | + $key = 'bindingKey.' . $n; |
|
169 | 169 | $params[$key] = $tag; |
170 | 170 | $n += 1; |
171 | 171 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | if (is_array($subscription_meta->FilterTag) && !empty($subscription_meta->FilterTag)) { |
175 | 175 | $n = 1; |
176 | 176 | foreach ($subscription_meta->FilterTag as $tag) { |
177 | - $key = 'filterTag.'.$n; |
|
177 | + $key = 'filterTag.' . $n; |
|
178 | 178 | $params[$key] = $tag; |
179 | 179 | $n += 1; |
180 | 180 | } |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | { |
13 | 13 | $this->connection_timeout = $connection_timeout; |
14 | 14 | $this->keep_alive = $keep_alive; |
15 | - $this->host = $host.'/v2/index.php'; |
|
15 | + $this->host = $host . '/v2/index.php'; |
|
16 | 16 | $this->curl = null; |
17 | 17 | } |
18 | 18 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | curl_setopt($this->curl, CURLOPT_POST, 1); |
56 | 56 | curl_setopt($this->curl, CURLOPT_POSTFIELDS, $req_inter->data); |
57 | 57 | } else { |
58 | - $url .= $req_inter->uri.'?'.$req_inter->data; |
|
58 | + $url .= $req_inter->uri . '?' . $req_inter->data; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | if (isset($req_inter->header)) { |
@@ -137,12 +137,12 @@ discard block |
||
137 | 137 | switch ($this->topicOptions['filter']) { |
138 | 138 | case self::CMQ_TOPIC_TAG_FILTER_NAME: |
139 | 139 | return retry(Arr::get($this->topicOptions, 'retries', 3), |
140 | - function () use ($driver, $message, $queue) { |
|
140 | + function() use ($driver, $message, $queue) { |
|
141 | 141 | return $driver->publish_message($message->msgBody, explode(',', $queue), null); |
142 | 142 | }); |
143 | 143 | case self::CMQ_TOPIC_ROUTING_FILTER_NAME: |
144 | 144 | return retry(Arr::get($this->topicOptions, 'retries', 3), |
145 | - function () use ($driver, $message, $queue) { |
|
145 | + function() use ($driver, $message, $queue) { |
|
146 | 146 | $driver->publish_message($message->msgBody, [], $queue); |
147 | 147 | }); |
148 | 148 | default: |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | } |
153 | 153 | } |
154 | 154 | |
155 | - return retry(Arr::get($this->queueOptions, 'retries', 3), function () use ($driver, $message, $options) { |
|
155 | + return retry(Arr::get($this->queueOptions, 'retries', 3), function() use ($driver, $message, $options) { |
|
156 | 156 | return $driver->send_message($message, Arr::get($options, 'delay', 0)); |
157 | 157 | }); |
158 | 158 | } |