@@ -13,7 +13,7 @@ |
||
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); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | $this->getChannel()->queue_declare($job->getQueue(), true, $job->isPersistent(), false, false); |
33 | 33 | $this->getChannel()->basic_qos(0, 1, false); |
34 | - $this->getChannel()->basic_consume($job->getQueue(), '', false, false, false, false, function ($message) use ($job): void { |
|
34 | + $this->getChannel()->basic_consume($job->getQueue(), '', false, false, false, false, function($message) use ($job): void { |
|
35 | 35 | $job->setPayload($message->body); |
36 | 36 | $job->perform(); |
37 | 37 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $this->prepare($job); |
28 | 28 | $this->adapter->add($job); |
29 | 29 | } catch (Exception $e) { |
30 | - $this->logger->error('[Queue] An error has occurred when adding job: ' . $e->getMessage(), (array) $e); |
|
30 | + $this->logger->error('[Queue] An error has occurred when adding job: '.$e->getMessage(), (array) $e); |
|
31 | 31 | |
32 | 32 | return false; |
33 | 33 | } |