@@ -90,16 +90,16 @@ |
||
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(''); |