original_string: protected function showGeneralHelp()
      {
          $this->output->writeln("<yellow>Available commands:</yellow>");
  
          $longestName = 0;
          foreach ($this->app->getCommands() as $command) {
              $strlen = strlen($command->getName());
              if ($strlen > $longestName) {
                  $longestName = $strlen;
              }
          }
  
          foreach ($this->app->getCommands() as $command) {
              $name = $command->getName();
              $this->output->write(str_pad("  <green>{$name}</green>", $longestName + 22, ' ', STR_PAD_RIGHT));
              $this->output->write("{$command->getDescription()}");
              $this->output->newline();
          }
      }
code: protected function showGeneralHelp()
      {
          $this->output->writeln("<yellow>Available commands:</yellow>");
  
          $longestName = 0;
          foreach ($this->app->getCommands() as $command) {
              $strlen = strlen($command->getName());
              if ($strlen > $longestName) {
                  $longestName = $strlen;
              }
          }
  
          foreach ($this->app->getCommands() as $command) {
              $name = $command->getName();
              $this->output->write(str_pad("  <green>{$name}</green>", $longestName + 22, ' ', STR_PAD_RIGHT));
              $this->output->write("{$command->getDescription()}");
              $this->output->newline();
          }
      }
code_tokens: protected function showGeneralHelp ( ) { $ this -> output -> writeln ( "<yellow>Available commands:</yellow>" ) ; $ longestName = 0 ; foreach ( $ this -> app -> getCommands ( ) as $ command ) { $ strlen = strlen ( $ command -> getName ( ) ) ; if ( $ strlen > $ longestName ) { $ longestName = $ strlen ; } } foreach ( $ this -> app -> getCommands ( ) as $ command ) { $ name = $ command -> getName ( ) ; $ this -> output -> write ( str_pad ( "  <green>{$name}</green>" , $ longestName + 22 , ' ' , STR_PAD_RIGHT ) ) ; $ this -> output -> write ( "{$command->getDescription()}" ) ; $ this -> output -> newline ( ) ; } }
docstring: Show information about all commands.
docstring_tokens: Show information about all commands .