@@ -5,21 +5,21 @@ |
||
| 5 | 5 | class AmqpPartsHolder |
| 6 | 6 | { |
| 7 | 7 | /** @var array */ |
| 8 | - protected $parts; |
|
| 8 | + protected $parts; |
|
| 9 | 9 | |
| 10 | - public function __construct() |
|
| 11 | - { |
|
| 12 | - $this->parts = array(); |
|
| 13 | - } |
|
| 10 | + public function __construct() |
|
| 11 | + { |
|
| 12 | + $this->parts = array(); |
|
| 13 | + } |
|
| 14 | 14 | |
| 15 | - public function addPart(string $type, BaseAmqp $part): void |
|
| 16 | - { |
|
| 17 | - $this->parts[$type][] = $part; |
|
| 18 | - } |
|
| 15 | + public function addPart(string $type, BaseAmqp $part): void |
|
| 16 | + { |
|
| 17 | + $this->parts[$type][] = $part; |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - public function getParts(string $type): array |
|
| 21 | - { |
|
| 20 | + public function getParts(string $type): array |
|
| 21 | + { |
|
| 22 | 22 | $type = (string) $type; |
| 23 | - return isset($this->parts[$type]) ? $this->parts[$type] : array(); |
|
| 24 | - } |
|
| 23 | + return isset($this->parts[$type]) ? $this->parts[$type] : array(); |
|
| 24 | + } |
|
| 25 | 25 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |