@@ -90,13 +90,13 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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'); |