Completed
Pull Request — master (#9)
by Marc
06:42
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,16 +90,16 @@
 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
 
98 98
         try {
99 99
             $this->consume($timeout);
100
-        } catch(AMQPTimeoutException $e) {
100
+        } catch (AMQPTimeoutException $e) {
101 101
             throw new TimeoutReaderException("Timed out at $timeout seconds while reading.", 0, $e);
102
-        } catch(\Exception $e) {
102
+        } catch (\Exception $e) {
103 103
             throw new ReaderException("Error occurred while reading", 0, $e);
104 104
         } finally {
105 105
             $this->channel->basic_cancel('');
Please login to merge, or discard this patch.