@@ -141,12 +141,12 @@ |
||
141 | 141 | * @return AMQPChannel |
142 | 142 | */ |
143 | 143 | public function getChannel() { |
144 | - if(!$this->connection) { |
|
144 | + if (!$this->connection) { |
|
145 | 145 | $this->connection = new AMQPStreamConnection($this->host, $this->port, $this->user, $this->password); |
146 | 146 | |
147 | 147 | $this->channel = $this->connection->channel(); |
148 | 148 | |
149 | - if($this->prefetchCount !== null || $this->prefetchCount !== null || $this->aGlobal !== null) { |
|
149 | + if ($this->prefetchCount !== null || $this->prefetchCount !== null || $this->aGlobal !== null) { |
|
150 | 150 | $this->channel->basic_qos(null, 1, null); |
151 | 151 | } |
152 | 152 |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | use PhpAmqpLib\Connection\AMQPStreamConnection; |
6 | 6 | use PhpAmqpLib\Channel\AMQPChannel; |
7 | 7 | |
8 | -class Binding implements RabbitMqObjectInterface{ |
|
8 | +class Binding implements RabbitMqObjectInterface { |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | public function init(AMQPChannel $amqpChannel) { |
63 | - if(!$this->init) { |
|
63 | + if (!$this->init) { |
|
64 | 64 | $this->source->init(); |
65 | 65 | $this->to->init(); |
66 | 66 |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * @author Marc |
9 | 9 | * |
10 | 10 | */ |
11 | -class Queue implements RabbitMqObjectInterface{ |
|
11 | +class Queue implements RabbitMqObjectInterface { |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | |
222 | 222 | |
223 | 223 | public function init(AMQPChannel $amqpChannel) { |
224 | - if(!$this->init) { |
|
224 | + if (!$this->init) { |
|
225 | 225 | $this->source->init($amqpChannel); |
226 | 226 | $this->deadLetterQueue->init($amqpChannel); |
227 | 227 | //TODO wip |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | use PhpAmqpLib\Channel\AMQPChannel; |
7 | 7 | use PhpAmqpLib\Message\AMQPMessage; |
8 | 8 | |
9 | -class Exchange implements RabbitMqObjectInterface{ |
|
9 | +class Exchange implements RabbitMqObjectInterface { |
|
10 | 10 | |
11 | 11 | /** |
12 | 12 | * @var Client |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | } |
221 | 221 | |
222 | 222 | public function init(AMQPChannel $amqpChannel) { |
223 | - if(!$this->init) { |
|
223 | + if (!$this->init) { |
|
224 | 224 | $amqpChannel->exchange_declare($this->name, |
225 | 225 | $this->type, |
226 | 226 | $this->passive, |