original_string: public function discoverPlugin($plugin)
      {
          $scanner = new CommandScanner();
          $shells = $scanner->scanPlugin($plugin);
  
          return $this->resolveNames($shells);
      }
code: public function discoverPlugin($plugin)
      {
          $scanner = new CommandScanner();
          $shells = $scanner->scanPlugin($plugin);
  
          return $this->resolveNames($shells);
      }
code_tokens: public function discoverPlugin ( $ plugin ) { $ scanner = new CommandScanner ( ) ; $ shells = $ scanner -> scanPlugin ( $ plugin ) ; return $ this -> resolveNames ( $ shells ) ; }
docstring: Auto-discover shell & commands from the named plugin.
  
  Discovered commands will have their names de-duplicated with
  existing commands in the collection. If a command is already
  defined in the collection and discovered in a plugin, only
  the long name (`plugin.command`) will be returned.
  
  @param string $plugin The plugin to scan.
  @return string[] Discovered plugin commands.
docstring_tokens: Auto - discover shell & commands from the named plugin .