Completed
Pull Request — 1.0 (#5)
by Benoit
02:05
created
src/Client.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -178,11 +178,11 @@
 block discarded – undo
178 178
                 $this->connection = new AMQPStreamConnection($this->host, $this->port, $this->user, $this->password);
179 179
             } catch (\ErrorException $e) {
180 180
                 /**
181
-                * We are trying to catch the exception when the connection if refused
182
-                **/
183
-              if (preg_match("/.*unable to connect.*Connection refused.*/", $e->__toString())) {
184
-                  throw new ConnectionException("Cannot create the connection", 404, $e);
185
-              }
181
+                 * We are trying to catch the exception when the connection if refused
182
+                 **/
183
+                if (preg_match("/.*unable to connect.*Connection refused.*/", $e->__toString())) {
184
+                    throw new ConnectionException("Cannot create the connection", 404, $e);
185
+                }
186 186
                 throw $e;
187 187
             }
188 188
             $this->channel = $this->connection->channel();
Please login to merge, or discard this patch.
tests/ClientTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         global $rabbitmq_password;
39 39
 
40 40
         if (!$port) {
41
-          $port = $rabbitmq_port;
41
+            $port = $rabbitmq_port;
42 42
         }
43 43
 
44 44
 
Please login to merge, or discard this patch.