@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | function spinner(string $message = ''): string |
28 | 28 | { |
29 | - $frame = FRAMES[(int)((int)(new \DateTime())->format('u') / 1e5) % count(FRAMES)]; |
|
29 | + $frame = FRAMES[(int) ((int) (new \DateTime())->format('u') / 1e5) % count(FRAMES)]; |
|
30 | 30 | return " $frame $message\r"; |
31 | 31 | } |
32 | 32 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function run(array $tasks, array $hosts, ?Planner $plan = null): int |
78 | 78 | { |
79 | - $globalLimit = (int)$this->input->getOption('limit') ?: count($hosts); |
|
79 | + $globalLimit = (int) $this->input->getOption('limit') ?: count($hosts); |
|
80 | 80 | |
81 | 81 | foreach ($tasks as $task) { |
82 | 82 | if (!$plan) { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | return 0; |
183 | 183 | } |
184 | 184 | |
185 | - $callback = function (string $output) { |
|
185 | + $callback = function(string $output) { |
|
186 | 186 | $output = preg_replace('/\n$/', '', $output); |
187 | 187 | if (strlen($output) !== 0) { |
188 | 188 | $this->output->writeln($output); |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** @var Process[] $processes */ |
193 | 193 | $processes = []; |
194 | 194 | |
195 | - $this->server->loop->futureTick(function () use (&$processes, $hosts, $task) { |
|
195 | + $this->server->loop->futureTick(function() use (&$processes, $hosts, $task) { |
|
196 | 196 | foreach ($hosts as $host) { |
197 | 197 | $processes[] = $this->createProcess($host, $task); |
198 | 198 | } |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | } |
203 | 203 | }); |
204 | 204 | |
205 | - $this->server->loop->addPeriodicTimer(0.03, function ($timer) use (&$processes, $callback) { |
|
205 | + $this->server->loop->addPeriodicTimer(0.03, function($timer) use (&$processes, $callback) { |
|
206 | 206 | $this->gatherOutput($processes, $callback); |
207 | 207 | if ($this->output->isDecorated() && !getenv('CI')) { |
208 | 208 | $this->output->write(spinner()); |