original_string: public function buildCommands()
      {
          $result = [];
          $pluginsCollection = $this->pluginManager->getPluginCollection();
  
          foreach ($pluginsCollection as $plugin) {
              if ($this->isValidCommandPlugin($plugin) === true) {
                  $result[] = $this->buildCommand($plugin);
              }
          }
  
          return $result;
      }
code: public function buildCommands()
      {
          $result = [];
          $pluginsCollection = $this->pluginManager->getPluginCollection();
  
          foreach ($pluginsCollection as $plugin) {
              if ($this->isValidCommandPlugin($plugin) === true) {
                  $result[] = $this->buildCommand($plugin);
              }
          }
  
          return $result;
      }
code_tokens: public function buildCommands ( ) { $ result = [ ] ; $ pluginsCollection = $ this -> pluginManager -> getPluginCollection ( ) ; foreach ( $ pluginsCollection as $ plugin ) { if ( $ this -> isValidCommandPlugin ( $ plugin ) === true ) { $ result [ ] = $ this -> buildCommand ( $ plugin ) ; } } return $ result ; }
docstring: Gets a list of Symfony Console command.
  
  @return Symfony\Component\Console\Command\Command[] Symfony Console commands
docstring_tokens: Gets a list of Symfony Console command .