Completed
Push — master ( 20fe45...9d479c )
by Daniel
03:03
created
Rpc/RpcClient.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     }
108 108
 
109 109
     /**
110
-     * @return ConnectionManagerInterface
110
+     * @return AMQPStreamConnection
111 111
      */
112 112
     public function getConnection()
113 113
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.