Passed
Push — master ( ed2263...7672bd )
by Mihai
04:36
created
RabbitMq/AmqpPartsHolder.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -4,21 +4,21 @@
 block discarded – undo
4 4
 
5 5
 class AmqpPartsHolder
6 6
 {
7
-	protected $parts;
7
+    protected $parts;
8 8
 
9
-	public function __construct()
10
-	{
11
-		$this->parts = array();
12
-	}
9
+    public function __construct()
10
+    {
11
+        $this->parts = array();
12
+    }
13 13
 
14
-	public function addPart($type, BaseAmqp $part)
15
-	{
16
-		$this->parts[$type][] = $part;
17
-	}
14
+    public function addPart($type, BaseAmqp $part)
15
+    {
16
+        $this->parts[$type][] = $part;
17
+    }
18 18
 
19
-	public function getParts($type)
20
-	{
19
+    public function getParts($type)
20
+    {
21 21
         $type = (string) $type;
22
-		return isset($this->parts[$type]) ? $this->parts[$type] : array();
23
-	}
22
+        return isset($this->parts[$type]) ? $this->parts[$type] : array();
23
+    }
24 24
 }
Please login to merge, or discard this patch.
RabbitMq/MultipleConsumer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             //PHP 5.3 Compliant
65 65
             $currentObject = $this;
66 66
 
67
-            $this->getChannel()->basic_consume($name, $this->getQueueConsumerTag($name), false, false, false, false, function (AMQPMessage $msg) use($currentObject, $name) {
67
+            $this->getChannel()->basic_consume($name, $this->getQueueConsumerTag($name), false, false, false, false, function(AMQPMessage $msg) use($currentObject, $name) {
68 68
                 $currentObject->processQueueMessage($name, $msg);
69 69
             });
70 70
         }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     protected function queueDeclare()
74 74
     {
75 75
         foreach ($this->queues as $name => $options) {
76
-            list($queueName, ,) = $this->getChannel()->queue_declare($name, $options['passive'],
76
+            list($queueName,,) = $this->getChannel()->queue_declare($name, $options['passive'],
77 77
                 $options['durable'], $options['exclusive'],
78 78
                 $options['auto_delete'], $options['nowait'],
79 79
                 $options['arguments'], $options['ticket']);
Please login to merge, or discard this patch.
RabbitMq/BatchConsumer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
280 280
     private function addMessage(AMQPMessage $message)
281 281
     {
282 282
         $this->batchCounter++;
283
-        $this->messages[(int)$message->delivery_info['delivery_tag']] = $message;
283
+        $this->messages[(int) $message->delivery_info['delivery_tag']] = $message;
284 284
     }
285 285
 
286 286
     /**
Please login to merge, or discard this patch.
RabbitMq/BaseAmqp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
     protected function queueDeclare()
219 219
     {
220 220
         if ($this->queueOptions['declare']) {
221
-            list($queueName, ,) = $this->getChannel()->queue_declare($this->queueOptions['name'], $this->queueOptions['passive'],
221
+            list($queueName,,) = $this->getChannel()->queue_declare($this->queueOptions['name'], $this->queueOptions['passive'],
222 222
                 $this->queueOptions['durable'], $this->queueOptions['exclusive'],
223 223
                 $this->queueOptions['auto_delete'], $this->queueOptions['nowait'],
224 224
                 $this->queueOptions['arguments'], $this->queueOptions['ticket']);
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
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
                                                    ? 'amq.rabbitmq.reply-to' // On direct reply-to mode, use predefined queue name
44 44
                                                    : $this->getQueueName(),
45 45
                                                'delivery_mode' => 1, // non durable
46
-                                               'expiration' => $expiration*1000,
46
+                                               'expiration' => $expiration * 1000,
47 47
                                                'correlation_id' => $requestId));
48 48
 
49 49
         $this->getChannel()->basic_publish($msg, $server, $routingKey);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     protected function getQueueName()
92 92
     {
93 93
         if (null === $this->queueName) {
94
-            list($this->queueName, ,) = $this->getChannel()->queue_declare("", false, false, true, false);
94
+            list($this->queueName,,) = $this->getChannel()->queue_declare("", false, false, true, false);
95 95
         }
96 96
 
97 97
         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.
RabbitMq/RpcServer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     public function initServer($name)
12 12
     {
13 13
         $this->setExchangeOptions(array('name' => $name, 'type' => 'direct'));
14
-        $this->setQueueOptions(array('name' => $name . '-queue'));
14
+        $this->setQueueOptions(array('name' => $name.'-queue'));
15 15
     }
16 16
 
17 17
     public function processMessage(AMQPMessage $msg)
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
             $this->consumed++;
25 25
             $this->maybeStopConsumer();
26 26
         } catch (\Exception $e) {
27
-            $this->sendReply('error: ' . $e->getMessage(), $msg->get('reply_to'), $msg->get('correlation_id'));
27
+            $this->sendReply('error: '.$e->getMessage(), $msg->get('reply_to'), $msg->get('correlation_id'));
28 28
         }
29 29
     }
30 30
 
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.