@@ -16,8 +16,8 @@ |
||
16 | 16 | protected function configure(): void |
17 | 17 | { |
18 | 18 | $this->addArgument('name', InputArgument::REQUIRED, 'Consumer Name') |
19 | - ->setDescription('Purge a consumer\'s queue') |
|
20 | - ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before purging'); |
|
19 | + ->setDescription('Purge a consumer\'s queue') |
|
20 | + ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before purging'); |
|
21 | 21 | |
22 | 22 | $this->setName('rabbitmq:purge'); |
23 | 23 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | } |
101 | 101 | $this->initConsumer($input); |
102 | 102 | |
103 | - return $this->consumer->consume((int)$this->amount); |
|
103 | + return $this->consumer->consume((int) $this->amount); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | protected function initConsumer(InputInterface $input): void |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $this->consumer = $this->getContainer() |
109 | 109 | ->get(sprintf($this->getConsumerService(), $input->getArgument('name'))); |
110 | 110 | |
111 | - if (!is_null($input->getOption('memory-limit')) && ctype_digit((string) $input->getOption('memory-limit')) && (int)$input->getOption('memory-limit') > 0) { |
|
111 | + if (!is_null($input->getOption('memory-limit')) && ctype_digit((string) $input->getOption('memory-limit')) && (int) $input->getOption('memory-limit') > 0) { |
|
112 | 112 | $this->consumer->setMemoryLimit($input->getOption('memory-limit')); |
113 | 113 | } |
114 | 114 | $this->consumer->setRoutingKey($input->getOption('route')); |
@@ -16,8 +16,8 @@ |
||
16 | 16 | protected function configure(): void |
17 | 17 | { |
18 | 18 | $this->addArgument('name', InputArgument::REQUIRED, 'Consumer Name') |
19 | - ->setDescription('Delete a consumer\'s queue') |
|
20 | - ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before deleting'); |
|
19 | + ->setDescription('Delete a consumer\'s queue') |
|
20 | + ->addOption('no-confirmation', null, InputOption::VALUE_NONE, 'Whether it must be confirmed before deleting'); |
|
21 | 21 | |
22 | 22 | $this->setName('rabbitmq:delete'); |
23 | 23 | } |