Test Failed
Push — master ( 01c8bf...47a47f )
by Daniel
03:32
created
Transport/Rpc/RpcClient.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -83,13 +83,13 @@  discard block
 block discarded – undo
83 83
         $connection = $this->connectionManager->getConnection($this->connectionName);
84 84
         $channel = $connection->channel();
85 85
 
86
-        if (! $this->queueHasExists($channel)) {
86
+        if (!$this->queueHasExists($channel)) {
87 87
             throw new QueueNotFoundException("Queue $this->queueName not declared.");
88 88
         }
89
-        $sufix = Uuid::uuid4()->toString() . microtime();
89
+        $sufix = Uuid::uuid4()->toString().microtime();
90 90
         $this->createCallbackQueue($channel, $expire, $sufix);
91 91
         $msg = new CmobiAMQPMessage(
92
-            (string) $data,
92
+            (string)$data,
93 93
             [
94 94
                 'correlation_id' => $this->correlationId,
95 95
                 'reply_to' => $this->callbackQueue,
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         );
99 99
         $channel->basic_publish($msg, '', $this->getQueueName());
100 100
 
101
-        while (! $this->response) {
101
+        while (!$this->response) {
102 102
             try {
103 103
                 $channel->wait(null, 0, ($expire / 1000));
104 104
             } catch (\Exception $e) {
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     /** @return string */
169 169
     public function generateCorrelationId()
170 170
     {
171
-        return uniqid($this->getQueueName()) . Uuid::uuid4()->toString() . microtime();
171
+        return uniqid($this->getQueueName()).Uuid::uuid4()->toString().microtime();
172 172
     }
173 173
 
174 174
     /**
@@ -215,16 +215,16 @@  discard block
 block discarded – undo
215 215
         try {
216 216
             $connection->close();
217 217
             sleep(2);
218
-            fwrite($this->logOutput, 'start RpcClient::forceReconnect() - trying connect...' . PHP_EOL);
218
+            fwrite($this->logOutput, 'start RpcClient::forceReconnect() - trying connect...'.PHP_EOL);
219 219
             $connection = $this->getConnectionManager()->getConnection($this->connectionName);
220 220
             $channel = $connection->channel();
221 221
             $this->createCallbackQueue($channel, $expire, $sufix, $corralationId);
222 222
         } catch (\Exception $e) {
223
-            fwrite($this->errOutput, 'failed RpcClient::forceReconnect() - ' . $e->getMessage() . PHP_EOL);
223
+            fwrite($this->errOutput, 'failed RpcClient::forceReconnect() - '.$e->getMessage().PHP_EOL);
224 224
 
225 225
             return $connection;
226 226
         }
227
-        fwrite($this->logOutput, 'RpcClient::forceReconnect() - connected!' . PHP_EOL);
227
+        fwrite($this->logOutput, 'RpcClient::forceReconnect() - connected!'.PHP_EOL);
228 228
 
229 229
         return $connection;
230 230
     }
Please login to merge, or discard this patch.