@@ -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 | |
@@ -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, |