original_string: protected function printHelpText(array $command)
      {
          $shown = false;
  
          if (!empty($command['description'])) {
              $shown = true;
              $this->line($this->text($command['description']));
          }
  
          if (!empty($command['usage'])) {
  
              $shown = true;
              $this->line()->line($this->text('Usage:'));
  
              foreach ($command['usage'] as $usage) {
                  $this->line($usage);
              }
          }
  
          if (!empty($command['options'])) {
  
              $shown = true;
              $this->line()->line($this->text('Options:'));
  
              foreach ($command['options'] as $name => $description) {
                  $vars = array('@option' => $name, '@description' => $this->text($description));
                  $this->line($this->text('  @option  @description', $vars));
              }
          }
  
          if (!$shown) {
              $this->line($this->text('No help found for the command'));
          }
      }
code: protected function printHelpText(array $command)
      {
          $shown = false;
  
          if (!empty($command['description'])) {
              $shown = true;
              $this->line($this->text($command['description']));
          }
  
          if (!empty($command['usage'])) {
  
              $shown = true;
              $this->line()->line($this->text('Usage:'));
  
              foreach ($command['usage'] as $usage) {
                  $this->line($usage);
              }
          }
  
          if (!empty($command['options'])) {
  
              $shown = true;
              $this->line()->line($this->text('Options:'));
  
              foreach ($command['options'] as $name => $description) {
                  $vars = array('@option' => $name, '@description' => $this->text($description));
                  $this->line($this->text('  @option  @description', $vars));
              }
          }
  
          if (!$shown) {
              $this->line($this->text('No help found for the command'));
          }
      }
code_tokens: protected function printHelpText ( array $ command ) { $ shown = false ; if ( ! empty ( $ command [ 'description' ] ) ) { $ shown = true ; $ this -> line ( $ this -> text ( $ command [ 'description' ] ) ) ; } if ( ! empty ( $ command [ 'usage' ] ) ) { $ shown = true ; $ this -> line ( ) -> line ( $ this -> text ( 'Usage:' ) ) ; foreach ( $ command [ 'usage' ] as $ usage ) { $ this -> line ( $ usage ) ; } } if ( ! empty ( $ command [ 'options' ] ) ) { $ shown = true ; $ this -> line ( ) -> line ( $ this -> text ( 'Options:' ) ) ; foreach ( $ command [ 'options' ] as $ name => $ description ) { $ vars = array ( '@option' => $ name , '@description' => $ this -> text ( $ description ) ) ; $ this -> line ( $ this -> text ( '  @option  @description' , $ vars ) ) ; } } if ( ! $ shown ) { $ this -> line ( $ this -> text ( 'No help found for the command' ) ) ; } }
docstring: Print command help text
  @param array $command
docstring_tokens: Print command help text