Skip to content

Commit

Permalink
fix PHPCS check
Browse files Browse the repository at this point in the history
  • Loading branch information
haristku committed Oct 22, 2024
1 parent 10df3c9 commit 06b1286
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Commands/Monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ protected function doExecute(): int
$qCount = count($queues);
$qPerPAge = min(max($this->getPerPageFromArg(), 1), $qCount);
$qPageCount = ceil($qCount / $qPerPAge);

if ($this->interactiveCapability()) {
readline_callback_handler_install('', function () {});
readline_callback_handler_install('', function () {
});
stream_set_blocking(STDIN, false);
}

Expand Down Expand Up @@ -126,7 +127,7 @@ protected function doExecute(): int
$output->writeln("<fg=black;bg=white;options=bold>" . str_pad(" " . ($qCount) . " Q", 10) . " | " . str_pad(number_format($sumInQueue) . " R", 16) . "</>");
$output->writeln(str_repeat("-", 30));
$output->writeln(sprintf(
"Q [%s-%s] | <info>page %s/%s</>" . ($this->interactiveCapability() ? " | <comment>press (0-9.,q) or arrow(L,R,U,D)</>" : " | <error>use -p arg to jump to specific page</>"). " | diff/sec %s \n" .
"Q [%s-%s] | <info>page %s/%s</>" . ($this->interactiveCapability() ? " | <comment>press (0-9.,q) or arrow(L,R,U,D)</>" : " | <error>use -p arg to jump to specific page</>") . " | diff/sec %s \n" .
"%s used memory (%s peak). <info>%d</> workers active." . str_repeat(" ", 15),
($idx - $qPerPAge + 1),
$idx,
Expand Down

0 comments on commit 06b1286

Please sign in to comment.