Completed
Push — master ( 137a25...07f458 )
by Daniel
04:36
created
Rpc/Exception/RpcInvalidRequestException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
Rpc/RpcClient.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.