Test Failed
Pull Request — master (#37)
by
unknown
07:43
created
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/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.
Tests/RabbitMq/RpcServerTest.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
             ->disableOriginalConstructor()
17 17
             ->getMock();
18 18
         $message = $this->getMockBuilder('\PhpAmqpLib\Message\AMQPMessage')
19
-            ->setMethods( array('get'))
19
+            ->setMethods(array('get'))
20 20
             ->getMock();
21 21
         $message->delivery_info = array(
22 22
             'channel' => $this->getMockBuilder('\PhpAmqpLib\Channel\AMQPChannel')
Please login to merge, or discard this patch.
Tests/RabbitMq/BindingTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $key = 'example_key';
47 47
         $ch->expects($this->once())
48 48
             ->method('queue_bind')
49
-            ->will($this->returnCallback(function ($d, $s, $k, $n, $a) use ($destination, $source, $key) {
49
+            ->will($this->returnCallback(function($d, $s, $k, $n, $a) use ($destination, $source, $key) {
50 50
                 Assert::assertSame($destination, $d);
51 51
                 Assert::assertSame($source, $s);
52 52
                 Assert::assertSame($key, $k);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $key = 'example_key';
72 72
         $ch->expects($this->once())
73 73
             ->method('exchange_bind')
74
-            ->will($this->returnCallback(function ($d, $s, $k, $n, $a) use ($destination, $source, $key) {
74
+            ->will($this->returnCallback(function($d, $s, $k, $n, $a) use ($destination, $source, $key) {
75 75
                 Assert::assertSame($destination, $d);
76 76
                 Assert::assertSame($source, $s);
77 77
                 Assert::assertSame($key, $k);
Please login to merge, or discard this patch.
DependencyInjection/OldSoundRabbitMqExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $this->container = $container;
39 39
 
40
-        $loader = new XmlFileLoader($this->container, new FileLocator(array(__DIR__ . '/../Resources/config')));
40
+        $loader = new XmlFileLoader($this->container, new FileLocator(array(__DIR__.'/../Resources/config')));
41 41
         $loader->load('rabbitmq.xml');
42 42
 
43 43
         $configuration = $this->getConfiguration($configs, $container);
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 
251 251
             if (empty($consumer['queues']) && empty($consumer['queues_provider'])) {
252 252
                 throw new InvalidConfigurationException(
253
-                    "Error on loading $key multiple consumer. " .
253
+                    "Error on loading $key multiple consumer. ".
254 254
                     "Either 'queues' or 'queues_provider' parameters should be defined."
255 255
                 );
256 256
             }
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 
331 331
             if (empty($consumer['queue_options_provider'])) {
332 332
                 throw new InvalidConfigurationException(
333
-                    "Error on loading $key dynamic consumer. " .
333
+                    "Error on loading $key dynamic consumer. ".
334 334
                     "'queue_provider' parameter should be defined."
335 335
                 );
336 336
             }
Please login to merge, or discard this patch.
RabbitMq/AMQPConnectionFactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $this->parameters = array_merge($this->parameters, $parameters);
46 46
         $this->parameters = $this->parseUrl($this->parameters);
47 47
         if (is_array($this->parameters['ssl_context'])) {
48
-            $this->parameters['ssl_context'] = ! empty($this->parameters['ssl_context'])
48
+            $this->parameters['ssl_context'] = !empty($this->parameters['ssl_context'])
49 49
                 ? stream_context_create(array('ssl' => $this->parameters['ssl_context']))
50 50
                 : null;
51 51
         }
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
                     $this->parameters['user'],
75 75
                     $this->parameters['password'],
76 76
                     $this->parameters['vhost'],
77
-                    false,      // insist
77
+                    false, // insist
78 78
                     'AMQPLAIN', // login_method
79
-                    null,       // login_response
80
-                    'en_US',    // locale
79
+                    null, // login_response
80
+                    'en_US', // locale
81 81
                     isset($this->parameters['read_timeout']) ? $this->parameters['read_timeout'] : $this->parameters['read_write_timeout'],
82 82
                     $this->parameters['keepalive'],
83 83
                     isset($this->parameters['write_timeout']) ? $this->parameters['write_timeout'] : $this->parameters['read_write_timeout'],
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
                 $this->parameters['user'],
92 92
                 $this->parameters['password'],
93 93
                 $this->parameters['vhost'],
94
-                false,      // insist
94
+                false, // insist
95 95
                 'AMQPLAIN', // login_method
96
-                null,       // login_response
97
-                'en_US',    // locale
96
+                null, // login_response
97
+                'en_US', // locale
98 98
                 $this->parameters['connection_timeout'],
99 99
                 $this->parameters['read_write_timeout'],
100 100
                 $this->parameters['ssl_context'],
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             $parameters['host'] = urldecode($url['host']);
129 129
         }
130 130
         if (isset($url['port'])) {
131
-            $parameters['port'] = (int)$url['port'];
131
+            $parameters['port'] = (int) $url['port'];
132 132
         }
133 133
         if (isset($url['user'])) {
134 134
             $parameters['user'] = urldecode($url['user']);
Please login to merge, or discard this patch.