Completed
Pull Request — master (#6)
by Marc
03:19
created
src/Cmp/Queues/Infrastructure/AmqpLib/v26/RabbitMQ/Queue/QueueReader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
      * @throws ReaderException
91 91
      * @throws TimeoutReaderException
92 92
      */
93
-    public function read(callable $callback, $timeout=0)
93
+    public function read(callable $callback, $timeout = 0)
94 94
     {
95 95
         $this->initialize();
96 96
         $this->messageHandler->setCallback($callback);
97 97
         try {
98 98
             $this->channel->wait(null, false, $timeout);
99
-        } catch(AMQPTimeoutException $e) {
99
+        } catch (AMQPTimeoutException $e) {
100 100
             throw new TimeoutReaderException("Timed out while reading", 0, $e);
101 101
         }
102 102
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     protected function initialize()
108 108
     {
109
-        if($this->channel) {
109
+        if ($this->channel) {
110 110
             return;
111 111
         }
112 112
         $this->logger->info('Connecting to RabbitMQ');
Please login to merge, or discard this patch.