Completed
Pull Request — 1.0 (#4)
by Benoit
05:42
created
src/Objects/Queue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -539,7 +539,7 @@
 block discarded – undo
539 539
                                     $consumer->isNoAck(),
540 540
                                     $consumer->isExclusive(),
541 541
                                     $consumer->isNoWait(),
542
-                                    function (AMQPMessage $msg) use ($consumer) {
542
+                                    function(AMQPMessage $msg) use ($consumer) {
543 543
                                         $consumer->callback($msg);
544 544
                                     },
545 545
                                     $consumer->getTicket(),
Please login to merge, or discard this patch.
src/Client.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
196 196
      */
197 197
     public function getQueues()
198 198
     {
199
-        return array_filter($this->rabbitMqObjects, function (RabbitMqObjectInterface $object) {
199
+        return array_filter($this->rabbitMqObjects, function(RabbitMqObjectInterface $object) {
200 200
             return $object instanceof QueueInterface;
201 201
         });
202 202
     }
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -78,17 +78,17 @@  discard block
 block discarded – undo
78 78
     private $rabbitMqObjects = [];
79 79
 
80 80
     /**
81
-    * Maximum connection's retry
82
-    **/
81
+     * Maximum connection's retry
82
+     **/
83 83
     const MAX_RETRY = 10;
84 84
 
85 85
     /**
86
-    * current retry amount
87
-    **/
86
+     * current retry amount
87
+     **/
88 88
     private static $retry = 0;
89 89
     /**
90
-    * time in seconds to wait between each retry
91
-    **/
90
+     * time in seconds to wait between each retry
91
+     **/
92 92
     const WAIT_TIME = 30;
93 93
 
94 94
     public function __construct($host, $port, $user, $password)
@@ -180,9 +180,9 @@  discard block
 block discarded – undo
180 180
     }
181 181
 
182 182
     /**
183
-    * Function used to create $this->connection
184
-    * handle connection's retry in case of the rabbitmq server is not ready yet
185
-    **/
183
+     * Function used to create $this->connection
184
+     * handle connection's retry in case of the rabbitmq server is not ready yet
185
+     **/
186 186
     private function createConnection()
187 187
     {
188 188
         try {
Please login to merge, or discard this patch.