Completed
Push — master ( 7b870f...10853a )
by Daniel
04:16
created
Transport/Worker/WorkerQueueCallback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function toClosure()
30 30
     {
31
-        return function (AMQPMessage $message) {
31
+        return function(AMQPMessage $message) {
32 32
             $this->getQueueService()->handle($message);
33 33
 
34 34
             $message->delivery_info['channel']->basic_ack($message->delivery_info['delivery_tag']);
Please login to merge, or discard this patch.
Connection/ConnectionFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@
 block discarded – undo
62 62
             $this->parameters['user'],
63 63
             $this->parameters['password'],
64 64
             $this->parameters['vhost'],
65
-            false,      // insist
65
+            false, // insist
66 66
             'AMQPLAIN', // login_method
67
-            null,       // login_response
68
-            'en_US',    // locale
67
+            null, // login_response
68
+            'en_US', // locale
69 69
             $this->parameters['connection_timeout'],
70 70
             $this->parameters['read_write_timeout'],
71 71
             $this->parameters['ssl_context'],
Please login to merge, or discard this patch.
Transport/Rpc/RpcQueueCallback.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
      */
30 30
     public function toClosure()
31 31
     {
32
-        return function (AMQPMessage $message) {
32
+        return function(AMQPMessage $message) {
33 33
             $response = $this->getQueueService()->handle($message);
34 34
 
35 35
             $amqpResponse = new CmobiAMQPMessage(
36
-                (string) $response,
36
+                (string)$response,
37 37
                 ['correlation_id' => $message->get('correlation_id')]
38 38
             );
39 39
 
Please login to merge, or discard this patch.
Tests/Queue/QueueTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             ->disableOriginalConstructor()
77 77
             ->getMock();
78 78
         $callbackMock->method('toClosure')
79
-            ->willReturn(function () {});
79
+            ->willReturn(function() {});
80 80
 
81 81
         return $callbackMock;
82 82
     }
Please login to merge, or discard this patch.
Transport/Subscriber/Publisher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $this->refreshChannel();
42 42
         $queueBag = new SubscriberQueueBag($this->getExchange(), $this->getExchangeType(), $this->getQueueName());
43 43
         $this->getChannel()->exchangeDeclare($queueBag->getExchangeDeclare());
44
-        $msg = new CmobiAMQPMessage((string) $data);
44
+        $msg = new CmobiAMQPMessage((string)$data);
45 45
         $this->getChannel()->basic_publish($msg, $queueBag->getExchange());
46 46
 
47 47
         $this->getChannel()->close();
Please login to merge, or discard this patch.
DependencyInjection/CmobiRabbitmqExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     public function load(array $configs, ContainerBuilder $container)
18 18
     {
19
-        $fileLocator = new FileLocator(__DIR__ . '/../Resources/config');
19
+        $fileLocator = new FileLocator(__DIR__.'/../Resources/config');
20 20
         $loader = new YamlFileLoader($container, $fileLocator);
21 21
         $loader->load('rabbitmq.yml');
22 22
 
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
@@ -34,13 +34,13 @@
 block discarded – undo
34 34
     {
35 35
         $this->refreshChannel();
36 36
 
37
-        if (! $this->queueHasExists()) {
37
+        if (!$this->queueHasExists()) {
38 38
             throw new QueueNotFoundException("Queue $this->queueName not declared.");
39 39
         }
40 40
         $queueBag = new WorkerQueueBag($this->getQueueName());
41 41
         $this->getChannel()->queueDeclare($queueBag->getQueueDeclare());
42 42
         $msg = new CmobiAMQPMessage(
43
-            (string) $data,
43
+            (string)$data,
44 44
             [
45 45
                 'delivery_mode' => 2, // make message persistent
46 46
                 'priority' => $priority,
Please login to merge, or discard this patch.
Transport/Subscriber/SubscriberQueueCallback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function toClosure()
30 30
     {
31
-        return function (AMQPMessage $message) {
31
+        return function(AMQPMessage $message) {
32 32
             $this->getQueueService()->handle($message);
33 33
         };
34 34
     }
Please login to merge, or discard this patch.
Transport/Rpc/RpcClient.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function refreshChannel()
48 48
     {
49
-        if (! $this->connection->isConnected()) {
49
+        if (!$this->connection->isConnected()) {
50 50
             $this->connection->reconnect();
51 51
         }
52 52
         $this->channel = $this->connection->channel();
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $this->response = null;
67 67
         $this->refreshChannel();
68 68
 
69
-        if (! $this->queueHasExists()) {
69
+        if (!$this->queueHasExists()) {
70 70
             throw new QueueNotFoundException("Queue $this->queueName not declared.");
71 71
         }
72 72
         $this->correlationId = $this->generateCorrelationId();
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             [$this, 'onResponse']
92 92
         );
93 93
         $msg = new CmobiAMQPMessage(
94
-            (string) $data,
94
+            (string)$data,
95 95
             [
96 96
                 'correlation_id' => $this->correlationId,
97 97
                 'reply_to' => $this->callbackQueue,
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         );
101 101
         $this->getChannel()->basic_publish($msg, '', $this->getQueueName());
102 102
 
103
-        while (! $this->response) {
103
+        while (!$this->response) {
104 104
             $this->getChannel()->wait(null, 0, ($expire / 1000));
105 105
         }
106 106
         $this->getChannel()->close();
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     /** @return string */
167 167
     public function generateCorrelationId()
168 168
     {
169
-        return uniqid($this->getQueueName()) . Uuid::uuid4()->toString() . microtime();
169
+        return uniqid($this->getQueueName()).Uuid::uuid4()->toString().microtime();
170 170
     }
171 171
 
172 172
     /**
Please login to merge, or discard this patch.