original_string: public function listNewVersions($plugin)
      {
          $code = is_string($plugin) ? $plugin : $this->pluginManager->getIdentifier($plugin);
  
          if (!$this->hasVersionFile($code)) {
              return [];
          }
  
          $databaseVersion = $this->getDatabaseVersion($code);
          return $this->getNewFileVersions($code, $databaseVersion);
      }
code: public function listNewVersions($plugin)
      {
          $code = is_string($plugin) ? $plugin : $this->pluginManager->getIdentifier($plugin);
  
          if (!$this->hasVersionFile($code)) {
              return [];
          }
  
          $databaseVersion = $this->getDatabaseVersion($code);
          return $this->getNewFileVersions($code, $databaseVersion);
      }
code_tokens: public function listNewVersions ( $ plugin ) { $ code = is_string ( $ plugin ) ? $ plugin : $ this -> pluginManager -> getIdentifier ( $ plugin ) ; if ( ! $ this -> hasVersionFile ( $ code ) ) { return [ ] ; } $ databaseVersion = $ this -> getDatabaseVersion ( $ code ) ; return $ this -> getNewFileVersions ( $ code , $ databaseVersion ) ; }
docstring: Returns a list of unapplied plugin versions.
docstring_tokens: Returns a list of unapplied plugin versions .