Passed
Branch master (053207)
by frey
03:43
created
src/Queue/CMQQueue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Queue/Driver/CMQExceptionBase.php 1 patch
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 = array("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
         return json_encode($info);
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
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 = array("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
         return json_encode($info);
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/Queue/Driver/CMQServerNetworkException.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
     public function __toString()
24 24
     {
25 25
         $info = array("status" => $this->status,
26
-                      "header" => json_encode($this->header),
27
-                      "data"   => $this->data);
26
+                        "header" => json_encode($this->header),
27
+                        "data"   => $this->data);
28 28
 
29 29
         return "CMQServerNetworkException  " . json_encode($info);
30 30
     }
Please login to merge, or discard this patch.
src/Queue/Driver/CMQHttp.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,9 @@
 block discarded – undo
41 41
         if (!$this->keep_alive) {
42 42
             $this->curl = curl_init();
43 43
         } else {
44
-            if ($this->curl == NULL)
45
-                $this->curl = curl_init();
44
+            if ($this->curl == NULL) {
45
+                            $this->curl = curl_init();
46
+            }
46 47
         }
47 48
 
48 49
         if ($this->curl == NULL) {
Please login to merge, or discard this patch.
src/Queue/Driver/Queue.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
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 = array("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
         return json_encode($info);
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
src/Queue/Driver/Message.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,12 +39,12 @@
 block discarded – undo
39 39
     public function __toString()
40 40
     {
41 41
         $info = array("msgBody"          => $this->msgBody,
42
-                      "msgId"            => $this->msgId,
43
-                      "enqueueTime"      => date("Y-m-d H:i:s", $this->enqueueTime),
44
-                      "nextVisibleTime"  => date("Y-m-d H:i:s", $this->nextVisibleTime),
45
-                      "firstDequeueTime" => date("Y-m-d H:i:s", $this->firstDequeueTime),
46
-                      "dequeueCount"     => $this->dequeueCount,
47
-                      "receiptHandle"    => $this->receiptHandle);
42
+                        "msgId"            => $this->msgId,
43
+                        "enqueueTime"      => date("Y-m-d H:i:s", $this->enqueueTime),
44
+                        "nextVisibleTime"  => date("Y-m-d H:i:s", $this->nextVisibleTime),
45
+                        "firstDequeueTime" => date("Y-m-d H:i:s", $this->firstDequeueTime),
46
+                        "dequeueCount"     => $this->dequeueCount,
47
+                        "receiptHandle"    => $this->receiptHandle);
48 48
         return json_encode($info);
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
src/Queue/Driver/ResponseInternal.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
     public function __toString()
23 23
     {
24 24
         $info = array("status" => $this->status,
25
-                      "header" => json_encode($this->header),
26
-                      "data"   => $this->data);
25
+                        "header" => json_encode($this->header),
26
+                        "data"   => $this->data);
27 27
         return json_encode($info);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.