original_string: protected function getDatabaseVersion($code)
      {
          if ($this->databaseVersions === null) {
              $this->databaseVersions = Db::table('system_plugin_versions')->lists('version', 'code');
          }
  
          if (!isset($this->databaseVersions[$code])) {
              $this->databaseVersions[$code] = Db::table('system_plugin_versions')
                  ->where('code', $code)
                  ->value('version')
              ;
          }
  
          return $this->databaseVersions[$code] ?? self::NO_VERSION_VALUE;
      }
code: protected function getDatabaseVersion($code)
      {
          if ($this->databaseVersions === null) {
              $this->databaseVersions = Db::table('system_plugin_versions')->lists('version', 'code');
          }
  
          if (!isset($this->databaseVersions[$code])) {
              $this->databaseVersions[$code] = Db::table('system_plugin_versions')
                  ->where('code', $code)
                  ->value('version')
              ;
          }
  
          return $this->databaseVersions[$code] ?? self::NO_VERSION_VALUE;
      }
code_tokens: protected function getDatabaseVersion ( $ code ) { if ( $ this -> databaseVersions === null ) { $ this -> databaseVersions = Db :: table ( 'system_plugin_versions' ) -> lists ( 'version' , 'code' ) ; } if ( ! isset ( $ this -> databaseVersions [ $ code ] ) ) { $ this -> databaseVersions [ $ code ] = Db :: table ( 'system_plugin_versions' ) -> where ( 'code' , $ code ) -> value ( 'version' ) ; } return $ this -> databaseVersions [ $ code ] ?? self :: NO_VERSION_VALUE ; }
docstring: Returns the latest version of a plugin from the database.
docstring_tokens: Returns the latest version of a plugin from the database .