Passed
Pull Request — master (#19)
by Mihai
03:15
created
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.
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 (&$lastQueue, $processFlag) {
269
+        return function($msg) use (&$lastQueue, $processFlag) {
270 270
             return $processFlag;
271 271
         };
272 272
     }
Please login to merge, or discard this patch.