original_string: public function addSubcommands(array $commands)
      {
          foreach ($commands as $name => $params) {
              if ($params instanceof ConsoleInputSubcommand) {
                  $name = $params;
                  $params = [];
              }
              $this->addSubcommand($name, $params);
          }
  
          return $this;
      }
code: public function addSubcommands(array $commands)
      {
          foreach ($commands as $name => $params) {
              if ($params instanceof ConsoleInputSubcommand) {
                  $name = $params;
                  $params = [];
              }
              $this->addSubcommand($name, $params);
          }
  
          return $this;
      }
code_tokens: public function addSubcommands ( array $ commands ) { foreach ( $ commands as $ name => $ params ) { if ( $ params instanceof ConsoleInputSubcommand ) { $ name = $ params ; $ params = [ ] ; } $ this -> addSubcommand ( $ name , $ params ) ; } return $ this ; }
docstring: Add multiple subcommands at once.
  
  @param array $commands Array of subcommands.
  @return $this
docstring_tokens: Add multiple subcommands at once .