@@ 163-168 (lines=6) @@ | ||
160 | return 0; |
|
161 | } |
|
162 | ||
163 | $callback = function (string $output) { |
|
164 | $output = preg_replace('/\n$/', '', $output); |
|
165 | if (strlen($output) !== 0) { |
|
166 | $this->output->writeln($output); |
|
167 | } |
|
168 | }; |
|
169 | ||
170 | $this->startProcesses($processes); |
|
171 | ||
@@ 59-64 (lines=6) @@ | ||
56 | */ |
|
57 | private function connect(array $hosts) |
|
58 | { |
|
59 | $callback = function (string $output) { |
|
60 | $output = preg_replace('/\n$/', '', $output); |
|
61 | if (strlen($output) !== 0) { |
|
62 | $this->output->writeln($output); |
|
63 | } |
|
64 | }; |
|
65 | ||
66 | // Connect to each host sequentially, to prevent getting locked. |
|
67 | foreach ($hosts as $host) { |