Completed
Pull Request — master (#10)
by Marc
03:01
created
src/Cmp/Queues/Domain/Task/Consumer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.