original_string: public function listCommand()
      {
          $rows = [];
          foreach ($this->queueConfigurations as $queueName => $queueConfiguration) {
              $queue = $this->queueManager->getQueue($queueName);
              try {
                  $numberOfMessages = $queue->countReady();
              } catch (\Exception $e) {
                  $numberOfMessages = '-';
              }
              $rows[] = [$queue->getName(), TypeHandling::getTypeForValue($queue), $numberOfMessages];
          }
          $this->output->outputTable($rows, ['Queue', 'Type', '# messages']);
      }
code: public function listCommand()
      {
          $rows = [];
          foreach ($this->queueConfigurations as $queueName => $queueConfiguration) {
              $queue = $this->queueManager->getQueue($queueName);
              try {
                  $numberOfMessages = $queue->countReady();
              } catch (\Exception $e) {
                  $numberOfMessages = '-';
              }
              $rows[] = [$queue->getName(), TypeHandling::getTypeForValue($queue), $numberOfMessages];
          }
          $this->output->outputTable($rows, ['Queue', 'Type', '# messages']);
      }
code_tokens: public function listCommand ( ) { $ rows = [ ] ; foreach ( $ this -> queueConfigurations as $ queueName => $ queueConfiguration ) { $ queue = $ this -> queueManager -> getQueue ( $ queueName ) ; try { $ numberOfMessages = $ queue -> countReady ( ) ; } catch ( \ Exception $ e ) { $ numberOfMessages = '-' ; } $ rows [ ] = [ $ queue -> getName ( ) , TypeHandling :: getTypeForValue ( $ queue ) , $ numberOfMessages ] ; } $ this -> output -> outputTable ( $ rows , [ 'Queue' , 'Type' , '# messages' ] ) ; }
docstring: List configured queues
  
  Displays all configured queues, their type and the number of messages that are ready to be processed.
  
  @return void
  @throws Exception
docstring_tokens: List configured queues