Test Failed
Push — master ( 01c8bf...47a47f )
by Daniel
03:32
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.
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/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.
Queue/Queue.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Cmobi\RabbitmqBundle\Connection\CmobiAMQPConnection;
7 7
 use Cmobi\RabbitmqBundle\Connection\ConnectionManager;
8 8
 use Cmobi\RabbitmqBundle\Connection\Exception\InvalidAMQPChannelException;
9
-use Psr\Log\LoggerInterface;
10 9
 
11 10
 class Queue implements QueueInterface
12 11
 {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -145,17 +145,17 @@
 block discarded – undo
145 145
         do {
146 146
             try {
147 147
                 $failed = false;
148
-                fwrite($this->logOutput, 'start Queue::forceReconnect() - trying connect...' . PHP_EOL);
148
+                fwrite($this->logOutput, 'start Queue::forceReconnect() - trying connect...'.PHP_EOL);
149 149
                 $this->connection = $this->getConnectionManager()->getConnection($this->connectionName);
150 150
                 $this->channel = $this->getConnection()->channel();
151 151
                 $this->createQueue();
152 152
             } catch (\Exception $e) {
153 153
                 $failed = true;
154 154
                 sleep(3);
155
-                fwrite($this->errOutput, 'failed Queue::forceReconnect() - ' . $e->getMessage() . PHP_EOL);
155
+                fwrite($this->errOutput, 'failed Queue::forceReconnect() - '.$e->getMessage().PHP_EOL);
156 156
             }
157 157
         } while ($failed);
158
-        fwrite($this->logOutput, 'Queue::forceReconnect() - connected!' . PHP_EOL);
158
+        fwrite($this->logOutput, 'Queue::forceReconnect() - connected!'.PHP_EOL);
159 159
 
160 160
         return $this->channel;
161 161
     }
Please login to merge, or discard this patch.
Transport/Subscriber/SubscriberBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function buildQueue($queueName, QueueServiceInterface $queueService, QueueBagInterface $queueBag)
32 32
     {
33
-        if (! $queueBag instanceof SubscriberQueueBag) {
33
+        if (!$queueBag instanceof SubscriberQueueBag) {
34 34
             throw new \Exception('Unsupported QueueBag');
35 35
         }
36 36
         $queue = new Queue($this->getConnectionManager(), $queueBag, $this->connectionName);
Please login to merge, or discard this patch.
Transport/Rpc/RpcServerBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function buildQueue($queueName, QueueServiceInterface $queueService, QueueBagInterface $queueBag)
32 32
     {
33
-        if (! $queueBag instanceof RpcQueueBag) {
33
+        if (!$queueBag instanceof RpcQueueBag) {
34 34
             throw new \Exception('Unsupported QueueBag');
35 35
         }
36 36
         $queue = new Queue($this->getConnectionManager(), $queueBag, $this->connectionName);
Please login to merge, or discard this patch.