original_string: public function listCommand($queue, $limit = 1)
      {
          $jobs = $this->jobManager->peek($queue, $limit);
          $totalCount = $this->queueManager->getQueue($queue)->countReady();
          foreach ($jobs as $job) {
              $this->outputLine('<b>%s</b>', [$job->getLabel()]);
          }
  
          if ($totalCount > count($jobs)) {
              $this->outputLine('(%d omitted) ...', [$totalCount - count($jobs)]);
          }
          $this->outputLine('(<b>%d total</b>)', [$totalCount]);
      }
code: public function listCommand($queue, $limit = 1)
      {
          $jobs = $this->jobManager->peek($queue, $limit);
          $totalCount = $this->queueManager->getQueue($queue)->countReady();
          foreach ($jobs as $job) {
              $this->outputLine('<b>%s</b>', [$job->getLabel()]);
          }
  
          if ($totalCount > count($jobs)) {
              $this->outputLine('(%d omitted) ...', [$totalCount - count($jobs)]);
          }
          $this->outputLine('(<b>%d total</b>)', [$totalCount]);
      }
code_tokens: public function listCommand ( $ queue , $ limit = 1 ) { $ jobs = $ this -> jobManager -> peek ( $ queue , $ limit ) ; $ totalCount = $ this -> queueManager -> getQueue ( $ queue ) -> countReady ( ) ; foreach ( $ jobs as $ job ) { $ this -> outputLine ( '<b>%s</b>' , [ $ job -> getLabel ( ) ] ) ; } if ( $ totalCount > count ( $ jobs ) ) { $ this -> outputLine ( '(%d omitted) ...' , [ $ totalCount - count ( $ jobs ) ] ) ; } $ this -> outputLine ( '(<b>%d total</b>)' , [ $ totalCount ] ) ; }
docstring: List queued jobs
  
  Shows the label of the next <i>$limit</i> Jobs in a given queue.
  
  @param string $queue The name of the queue
  @param integer $limit Number of jobs to list (some queues only support a limit of 1)
  @return void
  @throws JobQueueException
docstring_tokens: List queued jobs