original_string: public function purgePlugin($pluginCode)
      {
          $versions = Db::table('system_plugin_versions')->where('code', $pluginCode);
          if ($countVersions = $versions->count()) {
              $versions->delete();
          }
  
          $history = Db::table('system_plugin_history')->where('code', $pluginCode);
          if ($countHistory = $history->count()) {
              $history->delete();
          }
  
          return ($countHistory + $countVersions) > 0;
      }
code: public function purgePlugin($pluginCode)
      {
          $versions = Db::table('system_plugin_versions')->where('code', $pluginCode);
          if ($countVersions = $versions->count()) {
              $versions->delete();
          }
  
          $history = Db::table('system_plugin_history')->where('code', $pluginCode);
          if ($countHistory = $history->count()) {
              $history->delete();
          }
  
          return ($countHistory + $countVersions) > 0;
      }
code_tokens: public function purgePlugin ( $ pluginCode ) { $ versions = Db :: table ( 'system_plugin_versions' ) -> where ( 'code' , $ pluginCode ) ; if ( $ countVersions = $ versions -> count ( ) ) { $ versions -> delete ( ) ; } $ history = Db :: table ( 'system_plugin_history' ) -> where ( 'code' , $ pluginCode ) ; if ( $ countHistory = $ history -> count ( ) ) { $ history -> delete ( ) ; } return ( $ countHistory + $ countVersions ) > 0 ; }
docstring: Deletes all records from the version and history tables for a plugin.
  @param  string $pluginCode Plugin code
  @return void
docstring_tokens: Deletes all records from the version and history tables for a plugin .