@@ -7,7 +7,7 @@ |
||
7 | 7 | { |
8 | 8 | const ERROR_CODE = -32600; |
9 | 9 | |
10 | - public function __construct($message = null,\Exception $previous = null) |
|
10 | + public function __construct($message = null, \Exception $previous = null) |
|
11 | 11 | { |
12 | 12 | if (is_null($message)) { |
13 | 13 | $message = 'Invalid Request'; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function onResponse(AMQPMessage $rep) |
44 | 44 | { |
45 | - if($rep->get('correlation_id') == $this->correlationId) { |
|
45 | + if ($rep->get('correlation_id') == $this->correlationId) { |
|
46 | 46 | $this->response = $rep->body; |
47 | 47 | } |
48 | 48 | } |
@@ -192,8 +192,8 @@ discard block |
||
192 | 192 | $expire = self::DEFAULT_TTL |
193 | 193 | ) |
194 | 194 | { |
195 | - list($callbackQueue, ,) = $this->getChannel()->queue_declare( |
|
196 | - 'callback_to_' . $this->getQueueName() . uniqid('', true), false, false, false, true, false, [ |
|
195 | + list($callbackQueue,,) = $this->getChannel()->queue_declare( |
|
196 | + 'callback_to_'.$this->getQueueName().uniqid('', true), false, false, false, true, false, [ |
|
197 | 197 | 'x-message-ttl' => ['I', $expire], |
198 | 198 | 'x-max-priority' => ['I', RpcRequestCollectionInterface::PRIORITY_MAX] |
199 | 199 | ] |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | ); |
215 | 215 | $this->getChannel()->basic_publish($msg, '', $this->getQueueName()); |
216 | 216 | |
217 | - while(!$this->response) { |
|
217 | + while (!$this->response) { |
|
218 | 218 | $this->getChannel()->wait(); |
219 | 219 | } |
220 | 220 | $this->getChannel()->close(); |