@@ -25,12 +25,12 @@ |
||
25 | 25 | * @param callable $callback Callable that'll be invoked when a message is received |
26 | 26 | * @param int $timeout (optional) If specified, the process will block a max of $timeout seconds. Indefinitely if 0 |
27 | 27 | */ |
28 | - public function consume(callable $callback, $timeout=0) |
|
28 | + public function consume(callable $callback, $timeout = 0) |
|
29 | 29 | { |
30 | - while(true) { |
|
30 | + while (true) { |
|
31 | 31 | try { |
32 | 32 | $this->queueReader->read($callback, $timeout); |
33 | - } catch(TimeoutReaderException $e) { |
|
33 | + } catch (TimeoutReaderException $e) { |
|
34 | 34 | break; |
35 | 35 | } |
36 | 36 | } |