original_string: public function updatePlugin($name)
      {
          /*
           * Update the plugin database and version
           */
          if (!($plugin = $this->pluginManager->findByIdentifier($name))) {
              $this->note('<error>Unable to find:</error> ' . $name);
              return;
          }
  
          $this->note($name);
  
          $this->versionManager->resetNotes()->setNotesOutput($this->notesOutput);
  
          if ($this->versionManager->updatePlugin($plugin) !== false) {
  
              foreach ($this->versionManager->getNotes() as $note) {
                  $this->note($note);
              }
          }
  
          return $this;
      }
code: public function updatePlugin($name)
      {
          /*
           * Update the plugin database and version
           */
          if (!($plugin = $this->pluginManager->findByIdentifier($name))) {
              $this->note('<error>Unable to find:</error> ' . $name);
              return;
          }
  
          $this->note($name);
  
          $this->versionManager->resetNotes()->setNotesOutput($this->notesOutput);
  
          if ($this->versionManager->updatePlugin($plugin) !== false) {
  
              foreach ($this->versionManager->getNotes() as $note) {
                  $this->note($note);
              }
          }
  
          return $this;
      }
code_tokens: public function updatePlugin ( $ name ) { /*
           * Update the plugin database and version
           */ if ( ! ( $ plugin = $ this -> pluginManager -> findByIdentifier ( $ name ) ) ) { $ this -> note ( '<error>Unable to find:</error> ' . $ name ) ; return ; } $ this -> note ( $ name ) ; $ this -> versionManager -> resetNotes ( ) -> setNotesOutput ( $ this -> notesOutput ) ; if ( $ this -> versionManager -> updatePlugin ( $ plugin ) !== false ) { foreach ( $ this -> versionManager -> getNotes ( ) as $ note ) { $ this -> note ( $ note ) ; } } return $ this ; }
docstring: Runs update on a single plugin
  @param string $name Plugin name.
  @return self
docstring_tokens: Runs update on a single plugin