Completed
Push — master ( ee34c3...721642 )
by frey
02:43
created
src/Queue/Driver/Account.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         if ($offset == '') {
123 123
             $next_offset = count($ret_pkg['queueList']);
124 124
         } else {
125
-            $next_offset = (int) $offset + count($ret_pkg['queueList']);
125
+            $next_offset = (int)$offset + count($ret_pkg['queueList']);
126 126
         }
127 127
         if ($next_offset >= $ret_pkg['totalCount']) {
128 128
             $next_offset = '';
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         if ($offset == '') {
165 165
             $next_offset = count($resp['topicList']);
166 166
         } else {
167
-            $next_offset = (int) $offset + count($resp['topicList']);
167
+            $next_offset = (int)$offset + count($resp['topicList']);
168 168
         }
169 169
         if ($next_offset >= $resp['totalCount']) {
170 170
             $next_offset = '';
Please login to merge, or discard this patch.
src/Queue/Driver/CMQClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         } elseif (strpos($host, 'https://') === 0) {
31 31
             $_host = substr($host, 8, strlen($host) - 8);
32 32
         } else {
33
-            throw new CMQClientParameterException('Only support http(s) prototol. Invalid endpoint:'.$host);
33
+            throw new CMQClientParameterException('Only support http(s) prototol. Invalid endpoint:' . $host);
34 34
         }
35 35
         if ($_host[strlen($_host) - 1] == '/') {
36 36
             $this->host = substr($_host, 0, strlen($_host) - 1);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         } elseif ($sign_method == 'sha256') {
47 47
             $this->sign_method = 'HmacSHA256';
48 48
         } else {
49
-            throw new CMQClientParameterException('Only support sign method HmasSHA256 or HmacSHA1 . Invalid sign method:'.$sign_method);
49
+            throw new CMQClientParameterException('Only support sign method HmasSHA256 or HmacSHA1 . Invalid sign method:' . $sign_method);
50 50
         }
51 51
     }
52 52
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         $iTimeout = 0;
81 81
 
82 82
         if (array_key_exists('UserpollingWaitSeconds', $params)) {
83
-            $iTimeout = (int) $params['UserpollingWaitSeconds'];
83
+            $iTimeout = (int)$params['UserpollingWaitSeconds'];
84 84
         }
85 85
         // send request
86 86
         $resp_inter = $this->http->send_request($req_inter, $iTimeout);
Please login to merge, or discard this patch.
src/Queue/Driver/CMQHttp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/Queue/Driver/Queue.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/LaravelQueueCMQServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     public function register()
17 17
     {
18 18
         $this->mergeConfigFrom(
19
-            __DIR__.'/../config/cmq.php', 'queue.connections.cmq'
19
+            __DIR__ . '/../config/cmq.php', 'queue.connections.cmq'
20 20
         );
21 21
     }
22 22
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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();
35 35
         });
36 36
     }
Please login to merge, or discard this patch.