original_string: protected function listAdminCommands()
      {
          $commands = collect(Artisan::all())->mapWithKeys(function ($command, $key) {
              if (Str::startsWith($key, 'admin:')) {
                  return [$key => $command];
              }
  
              return [];
          })->toArray();
  
          $width = $this->getColumnWidth($commands);
  
          /** @var Command $command */
          foreach ($commands as $command) {
              $this->line(sprintf(" %-{$width}s %s", $command->getName(), $command->getDescription()));
          }
      }
code: protected function listAdminCommands()
      {
          $commands = collect(Artisan::all())->mapWithKeys(function ($command, $key) {
              if (Str::startsWith($key, 'admin:')) {
                  return [$key => $command];
              }
  
              return [];
          })->toArray();
  
          $width = $this->getColumnWidth($commands);
  
          /** @var Command $command */
          foreach ($commands as $command) {
              $this->line(sprintf(" %-{$width}s %s", $command->getName(), $command->getDescription()));
          }
      }
code_tokens: protected function listAdminCommands ( ) { $ commands = collect ( Artisan :: all ( ) ) -> mapWithKeys ( function ( $ command , $ key ) { if ( Str :: startsWith ( $ key , 'admin:' ) ) { return [ $ key => $ command ] ; } return [ ] ; } ) -> toArray ( ) ; $ width = $ this -> getColumnWidth ( $ commands ) ; /** @var Command $command */ foreach ( $ commands as $ command ) { $ this -> line ( sprintf ( " %-{$width}s %s" , $ command -> getName ( ) , $ command -> getDescription ( ) ) ) ; } }
docstring: List all admin commands.
  
  @return void
docstring_tokens: List all admin commands .