Completed
Pull Request — master (#2)
by Klaus
02:41
created
Category
src/Queue/Provider/QueueServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
             $container['queue.adapter_name'] = 'null';
18 18
         }
19 19
 
20
-        $container['queue.adapter'] = $container->factory(function ($container) {
20
+        $container['queue.adapter'] = $container->factory(function($container) {
21 21
             $adapterFactory = new AdapterFactory();
22 22
             $adapter = $adapterFactory->getAdapter($container['queue.adapter_name'], $container['queue.adapter_options']);
23 23
 
24 24
             return $adapter;
25 25
         });
26 26
 
27
-        $container['queue.service'] = function ($container) {
27
+        $container['queue.service'] = function($container) {
28 28
             $queueService = new QueueService();
29 29
             $queueService->setAdapter($container['queue.adapter']);
30 30
             $queueService->setLogger($container['monolog']);
Please login to merge, or discard this patch.
src/Queue/Adapter/RabbitAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         $this->getChannel()->queue_declare($job->getQueue(), true, $job->isPersistent(), false, false);
40 40
         $this->getChannel()->basic_qos(null, 1, null);
41
-        $this->getChannel()->basic_consume($job->getQueue(), '', false, false, false, false, function ($message) use ($job) {
41
+        $this->getChannel()->basic_consume($job->getQueue(), '', false, false, false, false, function($message) use ($job) {
42 42
             $job->setPayload($message->body);
43 43
             $job->perform();
44 44
 
Please login to merge, or discard this patch.