@@ -59,16 +59,16 @@ discard block |
||
59 | 59 | $this->chan = $chan; |
60 | 60 | $this->program = $program; |
61 | 61 | |
62 | - $this->processor = function ($data, Context $ctx = null) { |
|
62 | + $this->processor = function($data, Context $ctx = null) { |
|
63 | 63 | async($this->program, $ctx ?? new Context, $data)->then($this->done, $this->done); |
64 | 64 | }; |
65 | 65 | |
66 | - $this->done = function () { |
|
67 | - $this->running --; |
|
66 | + $this->done = function() { |
|
67 | + $this->running--; |
|
68 | 68 | $this->execute(); |
69 | 69 | }; |
70 | 70 | |
71 | - $this->close = function () { |
|
71 | + $this->close = function() { |
|
72 | 72 | $this->closing = true; |
73 | 73 | }; |
74 | 74 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | return; |
93 | 93 | } |
94 | 94 | |
95 | - $this->running ++; |
|
95 | + $this->running++; |
|
96 | 96 | |
97 | 97 | ($recv = $this->chan->recv())->then($this->processor, $this->close); |
98 | 98 |