Completed
Push — 1.0 ( 3cba8a...ca5b13 )
by David
04:07
created
src/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,12 +141,12 @@
 block discarded – undo
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
 			
Please login to merge, or discard this patch.
src/Objects/Exchange.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.