Completed
Push — master ( 781ce5...c86214 )
by Klaus
03:08
created
src/Queue/AdapterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
         $adapterClass = sprintf('%s\\Adapter\\%sAdapter', __NAMESPACE__, Inflector::pascalize($adapterName));
14 14
 
15 15
         if (!class_exists($adapterClass)) {
16
-            throw new \InvalidArgumentException('Adapter class does not exist: ' . $adapterClass);
16
+            throw new \InvalidArgumentException('Adapter class does not exist: '.$adapterClass);
17 17
         }
18 18
 
19 19
         return new $adapterClass($adapterConfig);
Please login to merge, or discard this patch.
src/Queue/Provider/QueueServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 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
 
23 23
             return $adapterFactory->getAdapter($container['queue.adapter_name'], $container['queue.adapter_options']);
24 24
         });
25 25
 
26
-        $container['queue.service'] = function ($container) {
26
+        $container['queue.service'] = function($container) {
27 27
             $queueService = new QueueService();
28 28
             $queueService->setAdapter($container['queue.adapter']);
29 29
             $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): void {
41
+        $this->getChannel()->basic_consume($job->getQueue(), '', false, false, false, false, function($message) use ($job): void {
42 42
             $job->setPayload($message->body);
43 43
             $job->perform();
44 44
 
Please login to merge, or discard this patch.