@@ -34,12 +34,12 @@ |
||
34 | 34 | */ |
35 | 35 | protected $arguments; |
36 | 36 | |
37 | - public function getExchange(): string |
|
37 | + public function getExchange(): string |
|
38 | 38 | { |
39 | 39 | return $this->exchange; |
40 | 40 | } |
41 | 41 | |
42 | - public function setExchange(string $exchange): void |
|
42 | + public function setExchange(string $exchange): void |
|
43 | 43 | { |
44 | 44 | $this->exchange = $exchange; |
45 | 45 | } |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | public function initServer(string $name): void |
13 | 13 | { |
14 | 14 | $this->setExchangeOptions(array('name' => $name, 'type' => 'direct')); |
15 | - $this->setQueueOptions(array('name' => $name . '-queue')); |
|
15 | + $this->setQueueOptions(array('name' => $name.'-queue')); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | public function processMessage(AMQPMessage $msg): void |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $this->consumed++; |
26 | 26 | $this->maybeStopConsumer(); |
27 | 27 | } catch (\Exception $e) { |
28 | - $this->sendReply('error: ' . $e->getMessage(), $msg->get('reply_to'), $msg->get('correlation_id')); |
|
28 | + $this->sendReply('error: '.$e->getMessage(), $msg->get('reply_to'), $msg->get('correlation_id')); |
|
29 | 29 | } |
30 | 30 | } |
31 | 31 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * @throws \ErrorException |
45 | 45 | */ |
46 | - public function start (int $msgAmount = 0): void |
|
46 | + public function start(int $msgAmount = 0): void |
|
47 | 47 | { |
48 | 48 | $this->target = $msgAmount; |
49 | 49 |
@@ -207,7 +207,7 @@ |
||
207 | 207 | protected function queueDeclare(): void |
208 | 208 | { |
209 | 209 | if ($this->queueOptions['declare']) { |
210 | - list($queueName, ,) = $this->getChannel()->queue_declare($this->queueOptions['name'], $this->queueOptions['passive'], |
|
210 | + list($queueName,,) = $this->getChannel()->queue_declare($this->queueOptions['name'], $this->queueOptions['passive'], |
|
211 | 211 | $this->queueOptions['durable'], $this->queueOptions['exclusive'], |
212 | 212 | $this->queueOptions['auto_delete'], $this->queueOptions['nowait'], |
213 | 213 | $this->queueOptions['arguments'], $this->queueOptions['ticket']); |
@@ -109,7 +109,7 @@ |
||
109 | 109 | $this->consumer = $this->getContainer() |
110 | 110 | ->get(sprintf($this->getConsumerService(), $input->getArgument('name'))); |
111 | 111 | |
112 | - if (!is_null($input->getOption('memory-limit')) && ctype_digit((string) $input->getOption('memory-limit')) && (int)$input->getOption('memory-limit') > 0) { |
|
112 | + if (!is_null($input->getOption('memory-limit')) && ctype_digit((string) $input->getOption('memory-limit')) && (int) $input->getOption('memory-limit') > 0) { |
|
113 | 113 | $this->consumer->setMemoryLimit($input->getOption('memory-limit')); |
114 | 114 | } |
115 | 115 | $this->consumer->setRoutingKey($input->getOption('route')); |