@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | private function createExchangeCollection(DependencyContainerInterface $container): DependencyContainerInterface |
63 | 63 | { |
64 | - $container[self::RABBITMQ_EXCHANGES] = function (DependencyContainerInterface $container) { |
|
64 | + $container[self::RABBITMQ_EXCHANGES] = function(DependencyContainerInterface $container) { |
|
65 | 65 | return new ExchangeCollection( |
66 | 66 | $this->getExchanges() |
67 | 67 | ); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | private function createQueueCollection(DependencyContainerInterface $container): DependencyContainerInterface |
79 | 79 | { |
80 | - $container[self::RABBITMQ_QUEUES] = function (DependencyContainerInterface $container) { |
|
80 | + $container[self::RABBITMQ_QUEUES] = function(DependencyContainerInterface $container) { |
|
81 | 81 | return new QueueCollection( |
82 | 82 | $this->getQueues() |
83 | 83 | ); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | private function createListenerCollection(DependencyContainerInterface $container): DependencyContainerInterface |
95 | 95 | { |
96 | - $container[self::RABBITMQ_LISTENER] = function (DependencyContainerInterface $container) { |
|
96 | + $container[self::RABBITMQ_LISTENER] = function(DependencyContainerInterface $container) { |
|
97 | 97 | return new ListenerCollection( |
98 | 98 | $this->getListener() |
99 | 99 | ); |
@@ -60,7 +60,7 @@ |
||
60 | 60 | private function createMessage(RabbitMqMessageDataProvider $messageDataDataProvider): AMQPMessage |
61 | 61 | { |
62 | 62 | return new AMQPMessage( |
63 | - (string)json_encode( |
|
63 | + (string) json_encode( |
|
64 | 64 | $messageDataDataProvider->toArray() |
65 | 65 | ), |
66 | 66 | $messageDataDataProvider->getProperties() |
@@ -9,7 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * @param \DataProvider\RabbitMqExchangeDataProvider $exchangeDataProvider |
11 | 11 | */ |
12 | - public function declare(RabbitMqExchangeDataProvider $exchangeDataProvider): void; |
|
12 | + public function declare(RabbitMqExchangeDataProvider$exchangeDataProvider): void; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * @param \DataProvider\RabbitMqExchangeDataProvider $exchangeDataProvider |
@@ -31,7 +31,7 @@ |
||
31 | 31 | /** |
32 | 32 | * @param \DataProvider\RabbitMqExchangeDataProvider $exchangeDataProvider |
33 | 33 | */ |
34 | - public function declare(RabbitMqExchangeDataProvider $exchangeDataProvider): void |
|
34 | + public function declare(RabbitMqExchangeDataProvider$exchangeDataProvider): void |
|
35 | 35 | { |
36 | 36 | $this->channel->exchange_declare( |
37 | 37 | $exchangeDataProvider->getName(), |
@@ -10,7 +10,7 @@ |
||
10 | 10 | /** |
11 | 11 | * @param \DataProvider\RabbitMqQueueDataProvider $queueDataProvider |
12 | 12 | */ |
13 | - public function declare(RabbitMqQueueDataProvider $queueDataProvider): void; |
|
13 | + public function declare(RabbitMqQueueDataProvider$queueDataProvider): void; |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * @param \DataProvider\RabbitMqQueueBindDataProvider $bindDataProvider |
@@ -28,7 +28,7 @@ |
||
28 | 28 | /** |
29 | 29 | * @param \DataProvider\RabbitMqQueueDataProvider $queueDataProvider |
30 | 30 | */ |
31 | - public function declare(RabbitMqQueueDataProvider $queueDataProvider): void |
|
31 | + public function declare(RabbitMqQueueDataProvider$queueDataProvider): void |
|
32 | 32 | { |
33 | 33 | $this->channel->queue_declare( |
34 | 34 | $queueDataProvider->getName(), |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $this |
24 | 24 | ->setName('queue:worker:run') |
25 | 25 | ->addOption('loop', 'l', InputOption::VALUE_NONE, 'Endless loop') |
26 | - ->addOption('runtime', 't', InputOption::VALUE_REQUIRED, 'How long running this command',60); |
|
26 | + ->addOption('runtime', 't', InputOption::VALUE_REQUIRED, 'How long running this command', 60); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |