@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function buildQueue($queueName, QueueServiceInterface $queueService, QueueBagInterface $queueBag) |
| 35 | 35 | { |
| 36 | - if (! $queueBag instanceof RpcQueueBag) { |
|
| 36 | + if (!$queueBag instanceof RpcQueueBag) { |
|
| 37 | 37 | throw new \Exception('Unsupported QueueBag'); |
| 38 | 38 | } |
| 39 | 39 | $queue = new Queue($this->getConnectionManager(), $queueBag, $this->logger, $this->connectionName); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $this->response = null; |
| 67 | 67 | $this->refreshChannel(); |
| 68 | 68 | |
| 69 | - if (! $this->queueHasExists()) { |
|
| 69 | + if (!$this->queueHasExists()) { |
|
| 70 | 70 | throw new QueueNotFoundException("Queue $this->queueName not declared."); |
| 71 | 71 | } |
| 72 | 72 | $this->correlationId = $this->generateCorrelationId(); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | [$this, 'onResponse'] |
| 92 | 92 | ); |
| 93 | 93 | $msg = new CmobiAMQPMessage( |
| 94 | - (string) $data, |
|
| 94 | + (string)$data, |
|
| 95 | 95 | [ |
| 96 | 96 | 'correlation_id' => $this->correlationId, |
| 97 | 97 | 'reply_to' => $this->callbackQueue, |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | ); |
| 101 | 101 | $this->getChannel()->basic_publish($msg, '', $this->getQueueName()); |
| 102 | 102 | |
| 103 | - while (! $this->response) { |
|
| 103 | + while (!$this->response) { |
|
| 104 | 104 | $this->getChannel()->wait(null, 0, ($expire / 1000)); |
| 105 | 105 | } |
| 106 | 106 | $this->getChannel()->close(); |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | /** @return string */ |
| 167 | 167 | public function generateCorrelationId() |
| 168 | 168 | { |
| 169 | - return uniqid($this->getQueueName()) . Uuid::uuid4()->toString() . microtime(); |
|
| 169 | + return uniqid($this->getQueueName()).Uuid::uuid4()->toString().microtime(); |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /** |