Completed
Push — master ( 1fce20...c903a9 )
by Daniel
03:12
created
Transport/Subscriber/Publisher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $channel = $connection->channel();
44 44
         $queueBag = new SubscriberQueueBag($this->getExchange(), $this->getExchangeType(), $this->getQueueName());
45 45
         $channel->exchangeDeclare($queueBag->getExchangeDeclare());
46
-        $msg = new CmobiAMQPMessage((string) $data);
46
+        $msg = new CmobiAMQPMessage((string)$data);
47 47
         $channel->basic_publish($msg, $queueBag->getExchange());
48 48
 
49 49
         $channel->close();
Please login to merge, or discard this patch.
Transport/Rpc/RpcClient.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -86,11 +86,11 @@  discard block
 block discarded – undo
86 86
         $connection = $this->connectionManager->getConnection($this->connectionName);
87 87
         $channel = $connection->channel();
88 88
 
89
-        if (! $this->queueHasExists($channel)) {
89
+        if (!$this->queueHasExists($channel)) {
90 90
             throw new QueueNotFoundException("Queue $this->queueName not declared.");
91 91
         }
92 92
         $msg = new CmobiAMQPMessage(
93
-            (string) $data,
93
+            (string)$data,
94 94
             [
95 95
                 'correlation_id' => $this->correlationId,
96 96
                 'reply_to' => $this->callbackQueue,
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         );
100 100
         $channel->basic_publish($msg, '', $this->getQueueName());
101 101
 
102
-        while (! $this->response) {
102
+        while (!$this->response) {
103 103
             try {
104 104
                 $channel->wait(null, 0, ($expire / 1000));
105 105
             } catch (\Exception $e) {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     /** @return string */
170 170
     public function generateCorrelationId()
171 171
     {
172
-        return uniqid($this->getQueueName()) . Uuid::uuid4()->toString() . microtime();
172
+        return uniqid($this->getQueueName()).Uuid::uuid4()->toString().microtime();
173 173
     }
174 174
 
175 175
     /**
@@ -216,17 +216,17 @@  discard block
 block discarded – undo
216 216
             try {
217 217
                 $connection->close();
218 218
                 $failed = false;
219
-                fwrite($this->logOutput, 'start RpcClient::forceReconnect() - trying connect...' . PHP_EOL);
219
+                fwrite($this->logOutput, 'start RpcClient::forceReconnect() - trying connect...'.PHP_EOL);
220 220
                 $connection = $this->getConnectionManager()->getConnection($this->connectionName);
221 221
                 $channel = $connection->channel();
222 222
                 $this->createCallbackQueue($channel, $expire, $corralationId);
223 223
             } catch (\Exception $e) {
224 224
                 $failed = true;
225 225
                 sleep(3);
226
-                fwrite($this->errOutput, 'failed RpcClient::forceReconnect() - ' . $e->getMessage() . PHP_EOL);
226
+                fwrite($this->errOutput, 'failed RpcClient::forceReconnect() - '.$e->getMessage().PHP_EOL);
227 227
             }
228 228
         } while ($failed);
229
-        fwrite($this->logOutput, 'RpcClient::forceReconnect() - connected!' . PHP_EOL);
229
+        fwrite($this->logOutput, 'RpcClient::forceReconnect() - connected!'.PHP_EOL);
230 230
 
231 231
         return $connection;
232 232
     }
Please login to merge, or discard this patch.
Transport/Worker/Task.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@
 block discarded – undo
35 35
         $connection = $this->connectionManager->getConnection();
36 36
         $channel = $connection->channel();
37 37
 
38
-        if (! $this->queueHasExists($channel)) {
38
+        if (!$this->queueHasExists($channel)) {
39 39
             throw new QueueNotFoundException("Queue $this->queueName not declared.");
40 40
         }
41 41
         $queueBag = new WorkerQueueBag($this->getQueueName());
42 42
         $channel->queueDeclare($queueBag->getQueueDeclare());
43 43
         $msg = new CmobiAMQPMessage(
44
-            (string) $data,
44
+            (string)$data,
45 45
             [
46 46
                 'delivery_mode' => 2, // make message persistent
47 47
                 'priority' => $priority,
Please login to merge, or discard this patch.