original_string: protected function populateDisabledPluginsFromDb()
      {
          if (!App::hasDatabase()) {
              return;
          }
  
          if (!Schema::hasTable('system_plugin_versions')) {
              return;
          }
  
          $disabled = Db::table('system_plugin_versions')->where('is_disabled', 1)->lists('code');
  
          foreach ($disabled as $code) {
              $this->disabledPlugins[$code] = true;
          }
      }
code: protected function populateDisabledPluginsFromDb()
      {
          if (!App::hasDatabase()) {
              return;
          }
  
          if (!Schema::hasTable('system_plugin_versions')) {
              return;
          }
  
          $disabled = Db::table('system_plugin_versions')->where('is_disabled', 1)->lists('code');
  
          foreach ($disabled as $code) {
              $this->disabledPlugins[$code] = true;
          }
      }
code_tokens: protected function populateDisabledPluginsFromDb ( ) { if ( ! App :: hasDatabase ( ) ) { return ; } if ( ! Schema :: hasTable ( 'system_plugin_versions' ) ) { return ; } $ disabled = Db :: table ( 'system_plugin_versions' ) -> where ( 'is_disabled' , 1 ) -> lists ( 'code' ) ; foreach ( $ disabled as $ code ) { $ this -> disabledPlugins [ $ code ] = true ; } }
docstring: Populates information about disabled plugins from database
  @return void
docstring_tokens: Populates information about disabled plugins from database