original_string: protected function getDatabaseHistory($code)
      {
          if ($this->databaseHistory !== null && array_key_exists($code, $this->databaseHistory)) {
              return $this->databaseHistory[$code];
          }
  
          $historyInfo = Db::table('system_plugin_history')
              ->where('code', $code)
              ->orderBy('id')
              ->get()
              ->all();
  
          return $this->databaseHistory[$code] = $historyInfo;
      }
code: protected function getDatabaseHistory($code)
      {
          if ($this->databaseHistory !== null && array_key_exists($code, $this->databaseHistory)) {
              return $this->databaseHistory[$code];
          }
  
          $historyInfo = Db::table('system_plugin_history')
              ->where('code', $code)
              ->orderBy('id')
              ->get()
              ->all();
  
          return $this->databaseHistory[$code] = $historyInfo;
      }
code_tokens: protected function getDatabaseHistory ( $ code ) { if ( $ this -> databaseHistory !== null && array_key_exists ( $ code , $ this -> databaseHistory ) ) { return $ this -> databaseHistory [ $ code ] ; } $ historyInfo = Db :: table ( 'system_plugin_history' ) -> where ( 'code' , $ code ) -> orderBy ( 'id' ) -> get ( ) -> all ( ) ; return $ this -> databaseHistory [ $ code ] = $ historyInfo ; }
docstring: Returns all the update history for a plugin.
docstring_tokens: Returns all the update history for a plugin .