Test Failed
Pull Request — master (#37)
by
unknown
08:52
created
RabbitMq/Consumer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@
 block discarded – undo
268 268
     {
269 269
         if ($this->gracefulMaxExecutionDateTime) {
270 270
             $allowedExecutionDateInterval = $this->gracefulMaxExecutionDateTime->diff(new \DateTime());
271
-            $allowedExecutionSeconds =  $allowedExecutionDateInterval->days * 86400
271
+            $allowedExecutionSeconds = $allowedExecutionDateInterval->days * 86400
272 272
                 + $allowedExecutionDateInterval->h * 3600
273 273
                 + $allowedExecutionDateInterval->i * 60
274 274
                 + $allowedExecutionDateInterval->s;
Please login to merge, or discard this patch.
RabbitMq/RpcClient.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,12 +39,12 @@
 block discarded – undo
39 39
         }
40 40
 
41 41
         $msg = new AMQPMessage($msgBody, array('content_type' => 'text/plain',
42
-                                               'reply_to' => $this->directReplyTo
42
+                                                'reply_to' => $this->directReplyTo
43 43
                                                    ? 'amq.rabbitmq.reply-to' // On direct reply-to mode, use predefined queue name
44 44
                                                    : $this->getQueueName(),
45
-                                               'delivery_mode' => 1, // non durable
46
-                                               'expiration' => $expiration*1000,
47
-                                               'correlation_id' => $requestId));
45
+                                                'delivery_mode' => 1, // non durable
46
+                                                'expiration' => $expiration*1000,
47
+                                                'correlation_id' => $requestId));
48 48
 
49 49
         $this->getChannel()->basic_publish($msg, $server, $routingKey);
50 50
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                                                    ? 'amq.rabbitmq.reply-to' // On direct reply-to mode, use predefined queue name
52 52
                                                    : $this->getQueueName(),
53 53
                                                'delivery_mode' => 1, // non durable
54
-                                               'expiration' => $expiration*1000,
54
+                                               'expiration' => $expiration * 1000,
55 55
                                                'correlation_id' => $requestId));
56 56
 
57 57
         $this->getChannel()->basic_publish($msg, $server, $routingKey);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     protected function getQueueName(): ?string
103 103
     {
104 104
         if (null === $this->queueName) {
105
-            list($this->queueName, ,) = $this->getChannel()->queue_declare("", false, false, true, false);
105
+            list($this->queueName,,) = $this->getChannel()->queue_declare("", false, false, true, false);
106 106
         }
107 107
 
108 108
         return $this->queueName;
Please login to merge, or discard this patch.
RabbitMq/Producer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             $msg->set('application_headers', $headersTable);
54 54
         }
55 55
 
56
-        $this->getChannel()->basic_publish($msg, $this->exchangeOptions['name'], (string)$routingKey);
56
+        $this->getChannel()->basic_publish($msg, $this->exchangeOptions['name'], (string) $routingKey);
57 57
         $this->logger->debug('AMQP message published', array(
58 58
             'amqp' => array(
59 59
                 'body' => $msgBody,
Please login to merge, or discard this patch.
RabbitMq/DynamicConsumer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use OldSound\RabbitMqBundle\Provider\QueueOptionsProviderInterface;
6 6
 
7
-class DynamicConsumer extends Consumer{
7
+class DynamicConsumer extends Consumer {
8 8
 
9 9
     /**
10 10
      * Queue provider
Please login to merge, or discard this patch.
Command/DeleteCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     protected function configure()
17 17
     {
18 18
         $this->addArgument('name', InputArgument::REQUIRED, 'Consumer Name')
19
-             ->setDescription('Delete a consumer\'s queue')
20
-             ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before deleting');
19
+                ->setDescription('Delete a consumer\'s queue')
20
+                ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before deleting');
21 21
 
22 22
         $this->setName('rabbitmq:delete');
23 23
     }
Please login to merge, or discard this patch.
Command/PurgeConsumerCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     protected function configure()
17 17
     {
18 18
         $this->addArgument('name', InputArgument::REQUIRED, 'Consumer Name')
19
-             ->setDescription('Purge a consumer\'s queue')
20
-             ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before purging');
19
+                ->setDescription('Purge a consumer\'s queue')
20
+                ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before purging');
21 21
 
22 22
         $this->setName('rabbitmq:purge');
23 23
     }
Please login to merge, or discard this patch.
Command/SetupFabricCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $partsHolder = $this->getContainer()->get('old_sound_rabbit_mq.parts_holder');
30 30
 
31 31
         foreach (array('base_amqp', 'binding') as $key) {
32
-            foreach ($partsHolder->getParts('old_sound_rabbit_mq.' . $key) as $baseAmqp) {
32
+            foreach ($partsHolder->getParts('old_sound_rabbit_mq.'.$key) as $baseAmqp) {
33 33
                 if ($baseAmqp instanceof DynamicConsumer) {
34 34
                     continue;
35 35
                 }
Please login to merge, or discard this patch.
MemoryChecker/MemoryConsumptionChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             }
60 60
         }
61 61
 
62
-        return (int)$numerical;
62
+        return (int) $numerical;
63 63
     }
64 64
 
65 65
 }
Please login to merge, or discard this patch.
Tests/RabbitMq/RpcClientTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $serializer->expects($this->once())->method('deserialize')->with('message', 'json', null);
27 27
         $client->initClient(true);
28 28
         $client->setUnserializer(function($data) use ($serializer) {
29
-            $serializer->deserialize($data, 'json','');
29
+            $serializer->deserialize($data, 'json', '');
30 30
         });
31 31
         $client->processMessage($message);
32 32
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             ->setConstructorArgs(array($expectedNotify))
46 46
             ->getMock();
47 47
         $notified = false;
48
-        $client->notify(function ($message) use (&$notified) {
48
+        $client->notify(function($message) use (&$notified) {
49 49
             $notified = $message;
50 50
         });
51 51
 
Please login to merge, or discard this patch.