Passed
Push — master ( 5c935d...fdde8f )
by Mihai
03:31
created
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.
Tests/RabbitMq/MultipleConsumerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -246,14 +246,14 @@  discard block
 block discarded – undo
246 246
     {
247 247
         $this->amqpChannel->expects($this->any())
248 248
             ->method('basic_reject')
249
-            ->will($this->returnCallback(function ($delivery_tag, $requeue) use ($expectedMethod, $expectedRequeue) {
249
+            ->will($this->returnCallback(function($delivery_tag, $requeue) use ($expectedMethod, $expectedRequeue) {
250 250
                 Assert::assertSame($expectedMethod, 'basic_reject'); // Check if this function should be called.
251 251
                 Assert::assertSame($requeue, $expectedRequeue); // Check if the message should be requeued.
252 252
             }));
253 253
 
254 254
         $this->amqpChannel->expects($this->any())
255 255
             ->method('basic_ack')
256
-            ->will($this->returnCallback(function ($delivery_tag) use ($expectedMethod) {
256
+            ->will($this->returnCallback(function($delivery_tag) use ($expectedMethod) {
257 257
                 Assert::assertSame($expectedMethod, 'basic_ack'); // Check if this function should be called.
258 258
             }));
259 259
     }
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      */
267 267
     private function prepareCallback($processFlag)
268 268
     {
269
-        return function ($msg) use ($processFlag) {
269
+        return function($msg) use ($processFlag) {
270 270
             return $processFlag;
271 271
         };
272 272
     }
Please login to merge, or discard this patch.
Command/RpcServerCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
         }
43 43
 
44 44
         $this->getContainer()
45
-               ->get(sprintf('old_sound_rabbit_mq.%s_server', $input->getArgument('name')))
46
-               ->start($amount);
45
+                ->get(sprintf('old_sound_rabbit_mq.%s_server', $input->getArgument('name')))
46
+                ->start($amount);
47 47
 
48 48
         return 0;
49 49
     }
Please login to merge, or discard this patch.