Test Failed
Push — master ( 0b1f80...505634 )
by frey
05:15
created
src/Queue/Driver/RequestInternal.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
     public function __toString()
24 24
     {
25 25
         $info = ['method'      => $this->method,
26
-                      'uri'    => $this->uri,
27
-                      'header' => json_encode($this->header),
28
-                      'data'   => $this->data, ];
26
+                        'uri'    => $this->uri,
27
+                        'header' => json_encode($this->header),
28
+                        'data'   => $this->data, ];
29 29
 
30 30
         return json_encode($info);
31 31
     }
Please login to merge, or discard this patch.
src/Queue/Driver/CMQClientException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
 
12 12
     public function __toString()
13 13
     {
14
-        return 'CMQClientException  '.$this->get_info();
14
+        return 'CMQClientException  ' . $this->get_info();
15 15
     }
16 16
 }
Please login to merge, or discard this patch.
src/Queue/Driver/Topic.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
238 238
         }
239 239
 
240 240
         return ['totalCoult'            => $resp['totalCount'],
241
-                     'subscriptionList' => $resp['subscriptionList'],
242
-                     'next_offset'      => $next_offset, ];
241
+                        'subscriptionList' => $resp['subscriptionList'],
242
+                        'next_offset'      => $next_offset, ];
243 243
     }
244 244
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         if ($vTagList != null && is_array($vTagList) && !empty($vTagList)) {
139 139
             $n = 1;
140 140
             foreach ($vTagList as $tag) {
141
-                $key = 'msgTag.'.$n;
141
+                $key = 'msgTag.' . $n;
142 142
                 $params[$key] = $tag;
143 143
                 $n += 1;
144 144
             }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         $n = 1;
179 179
         if (is_array($vmessageList) && !empty($vmessageList)) {
180 180
             foreach ($vmessageList as $msg) {
181
-                $key = 'msgBody.'.$n;
181
+                $key = 'msgBody.' . $n;
182 182
                 if ($this->encoding) {
183 183
                     $params[$key] = base64_encode($msg);
184 184
                 } else {
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
         if ($vtagList != null && is_array($vtagList) && !empty($vtagList)) {
191 191
             $n = 1;
192 192
             foreach ($vtagList as $tag) {
193
-                $key = 'msgTag.'.$n;
193
+                $key = 'msgTag.' . $n;
194 194
                 $params[$key] = $tag;
195 195
                 $n += 1;
196 196
             }
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
         if ($offset == '') {
231 231
             $next_offset = count($resp['subscriptionList']);
232 232
         } else {
233
-            $next_offset = (int) $offset + count($resp['subscriptionList']);
233
+            $next_offset = (int)$offset + count($resp['subscriptionList']);
234 234
         }
235 235
 
236 236
         if ($next_offset >= $resp['totalCount']) {
Please login to merge, or discard this patch.
src/Queue/Driver/Signature.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
                 $retStr = base64_encode(hash_hmac('sha256', $srcStr, $secretKey, true));
33 33
                 break;
34 34
             default:
35
-                throw new Exception($method.' is not a supported encrypt method');
35
+                throw new Exception($method . ' is not a supported encrypt method');
36 36
                 break;
37 37
         }
38 38
 
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
         $requestMethod = 'POST', $requestHost = '',
55 55
         $requestPath = '/v2/index.php')
56 56
     {
57
-        $url = $requestHost.$requestPath;
57
+        $url = $requestHost . $requestPath;
58 58
 
59 59
         // 取出所有的参数
60 60
         $paramStr = self::_buildParamStr($requestParams, $requestMethod);
61 61
 
62
-        $plainText = $requestMethod.$url.$paramStr;
62
+        $plainText = $requestMethod . $url . $paramStr;
63 63
 
64 64
         return $plainText;
65 65
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             } else {
97 97
                 $paramStr .= '&';
98 98
             }
99
-            $paramStr .= $key.'='.$value;
99
+            $paramStr .= $key . '=' . $value;
100 100
             $i++;
101 101
         }
102 102
 
Please login to merge, or discard this patch.
src/Queue/Driver/CMQExceptionBase.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
     public function get_info()
38 38
     {
39 39
         $info = ['code'         => $this->code,
40
-                      'data'    => json_encode($this->data),
41
-                      'message' => $this->message, ];
40
+                        'data'    => json_encode($this->data),
41
+                        'message' => $this->message, ];
42 42
 
43 43
         return json_encode($info);
44 44
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
     public function __toString()
33 33
     {
34
-        return 'CMQExceptionBase  '.$this->get_info();
34
+        return 'CMQExceptionBase  ' . $this->get_info();
35 35
     }
36 36
 
37 37
     public function get_info()
Please login to merge, or discard this patch.
src/Queue/Driver/CMQClientNetworkException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 
16 16
     public function __toString()
17 17
     {
18
-        return 'CMQClientNetworkException  '.$this->get_info();
18
+        return 'CMQClientNetworkException  ' . $this->get_info();
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
src/Queue/Driver/CMQServerException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
 
34 34
     public function __toString()
35 35
     {
36
-        return 'CMQServerException  '.$this->get_info().', RequestID:'.$this->request_id;
36
+        return 'CMQServerException  ' . $this->get_info() . ', RequestID:' . $this->request_id;
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/Queue/Driver/CMQClientParameterException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 
16 16
     public function __toString()
17 17
     {
18
-        return 'CMQClientParameterException  '.$this->get_info();
18
+        return 'CMQClientParameterException  ' . $this->get_info();
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
src/Queue/Driver/QueueMeta.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -59,19 +59,19 @@
 block discarded – undo
59 59
     public function __toString()
60 60
     {
61 61
         $info = ['visibilityTimeout'        => $this->visibilityTimeout,
62
-                      'maxMsgHeapNum'       => $this->maxMsgHeapNum,
63
-                      'maxMsgSize'          => $this->maxMsgSize,
64
-                      'msgRetentionSeconds' => $this->msgRetentionSeconds,
65
-                      'pollingWaitSeconds'  => $this->pollingWaitSeconds,
66
-                      'activeMsgNum'        => $this->activeMsgNum,
67
-                      'inactiveMsgNum'      => $this->inactiveMsgNum,
68
-                      'createTime'          => date('Y-m-d H:i:s', $this->createTime),
69
-                      'lastModifyTime'      => date('Y-m-d H:i:s', $this->lastModifyTime),
70
-                      'QueueName'           => $this->queueName,
71
-                      'rewindSeconds'       => $this->rewindSeconds,
72
-                      'rewindmsgNum'        => $this->rewindmsgNum,
73
-                      'minMsgTime'          => $this->minMsgTime,
74
-                      'delayMsgNum'         => $this->delayMsgNum, ];
62
+                        'maxMsgHeapNum'       => $this->maxMsgHeapNum,
63
+                        'maxMsgSize'          => $this->maxMsgSize,
64
+                        'msgRetentionSeconds' => $this->msgRetentionSeconds,
65
+                        'pollingWaitSeconds'  => $this->pollingWaitSeconds,
66
+                        'activeMsgNum'        => $this->activeMsgNum,
67
+                        'inactiveMsgNum'      => $this->inactiveMsgNum,
68
+                        'createTime'          => date('Y-m-d H:i:s', $this->createTime),
69
+                        'lastModifyTime'      => date('Y-m-d H:i:s', $this->lastModifyTime),
70
+                        'QueueName'           => $this->queueName,
71
+                        'rewindSeconds'       => $this->rewindSeconds,
72
+                        'rewindmsgNum'        => $this->rewindmsgNum,
73
+                        'minMsgTime'          => $this->minMsgTime,
74
+                        'delayMsgNum'         => $this->delayMsgNum, ];
75 75
 
76 76
         return json_encode($info);
77 77
     }
Please login to merge, or discard this patch.