@@ -55,7 +55,7 @@ |
||
55 | 55 | */ |
56 | 56 | protected function registerConnector($manager) |
57 | 57 | { |
58 | - $manager->addConnector('mns', function () { |
|
58 | + $manager->addConnector('mns', function() { |
|
59 | 59 | return new MnsConnector(); |
60 | 60 | }); |
61 | 61 | } |
@@ -70,11 +70,11 @@ |
||
70 | 70 | } |
71 | 71 | $marker = $res->getNextMarker(); |
72 | 72 | if ($marker) { |
73 | - $this->question('---下一页:['.base64_decode($marker).']---'); |
|
73 | + $this->question('---下一页:[' . base64_decode($marker) . ']---'); |
|
74 | 74 | $this->listQueue($client, $prefix, $marker); |
75 | 75 | } |
76 | 76 | } catch (MnsException $e) { |
77 | - $this->error('查询队列失败:'.$e); |
|
77 | + $this->error('查询队列失败:' . $e); |
|
78 | 78 | } |
79 | 79 | } |
80 | 80 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | } |
50 | 50 | $client = new Client($config['endpoint'], $config['key'], $config['secret']); |
51 | 51 | $queue = $client->getQueueRef($queueName); |
52 | - $this->alert('队列:'.$queueName); |
|
52 | + $this->alert('队列:' . $queueName); |
|
53 | 53 | $this->info('拉取信息中...'); |
54 | 54 | |
55 | 55 | try { |
@@ -60,13 +60,13 @@ discard block |
||
60 | 60 | */ |
61 | 61 | foreach ($messages as $message) { |
62 | 62 | $this->info('------------'); |
63 | - $this->info('消息编号'.$message->getMessageId()); |
|
64 | - $this->info('消息正文的 MD5 值'.$message->getMessageBodyMD5()); |
|
65 | - $this->info('消息正文'.$message->getMessageBody()); |
|
66 | - $this->info('消息发送到队列的时间'.$message->getEnqueueTime()); |
|
67 | - $this->info('第一次被消费的时间'.$message->getFirstDequeueTime()); |
|
68 | - $this->info('总共被消费的次数'.$message->getDequeueCount()); |
|
69 | - $this->info('消息的优先级权值'.$message->getPriority()); |
|
63 | + $this->info('消息编号' . $message->getMessageId()); |
|
64 | + $this->info('消息正文的 MD5 值' . $message->getMessageBodyMD5()); |
|
65 | + $this->info('消息正文' . $message->getMessageBody()); |
|
66 | + $this->info('消息发送到队列的时间' . $message->getEnqueueTime()); |
|
67 | + $this->info('第一次被消费的时间' . $message->getFirstDequeueTime()); |
|
68 | + $this->info('总共被消费的次数' . $message->getDequeueCount()); |
|
69 | + $this->info('消息的优先级权值' . $message->getPriority()); |
|
70 | 70 | $this->info('------------'); |
71 | 71 | } |
72 | 72 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | $this->info('队列删除成功'); |
54 | 54 | $this->alert($queue); |
55 | 55 | } catch (MnsException $e) { |
56 | - $this->error('队列删除失败:'.$e); |
|
56 | + $this->error('队列删除失败:' . $e); |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | if (!$queue) { |
48 | 48 | $queue = $config['queue']; |
49 | 49 | } |
50 | - $this->alert('队列:'.$queue); |
|
50 | + $this->alert('队列:' . $queue); |
|
51 | 51 | $client = new Client($config['endpoint'], $config['key'], $config['secret']); |
52 | 52 | $queue = $client->getQueueRef($queue); |
53 | 53 | $hasMessage = true; |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $this->info('队列创建成功'); |
56 | 56 | $this->alert($queue); |
57 | 57 | } catch (MnsException $e) { |
58 | - $this->error('队列创建失败:'.$e); |
|
58 | + $this->error('队列创建失败:' . $e); |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 | } |