@@ -107,7 +107,7 @@ |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | - * @return ConnectionManagerInterface |
|
| 110 | + * @return AMQPStreamConnection |
|
| 111 | 111 | */ |
| 112 | 112 | public function getConnection() |
| 113 | 113 | { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | public function onResponse(AMQPMessage $rep) |
| 32 | 32 | { |
| 33 | - if($rep->get('correlation_id') == $this->correlationId) { |
|
| 33 | + if ($rep->get('correlation_id') == $this->correlationId) { |
|
| 34 | 34 | $this->response = $rep->body; |
| 35 | 35 | } |
| 36 | 36 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public function call() |
| 42 | 42 | { |
| 43 | - list($callbackQueue, ,) = $this->getChannel()->queue_declare( |
|
| 43 | + list($callbackQueue,,) = $this->getChannel()->queue_declare( |
|
| 44 | 44 | '', false, false, true, false |
| 45 | 45 | ); |
| 46 | 46 | $this->callbackQueue = $callbackQueue; |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | ); |
| 61 | 61 | $this->getChannel()->basic_publish($msg, '', $this->getQueueName()); |
| 62 | 62 | |
| 63 | - while(!$this->response) { |
|
| 63 | + while (!$this->response) { |
|
| 64 | 64 | $this->getChannel()->wait(); |
| 65 | 65 | } |
| 66 | 66 | return $this->response; |