original_string: protected function loadDisabled()
      {
          $path = $this->metaFile;
  
          if (($configDisabled = Config::get('cms.disablePlugins')) && is_array($configDisabled)) {
              foreach ($configDisabled as $disabled) {
                  $this->disabledPlugins[$disabled] = true;
              }
          }
  
          if (File::exists($path)) {
              $disabled = json_decode(File::get($path), true) ?: [];
              $this->disabledPlugins = array_merge($this->disabledPlugins, $disabled);
          }
          else {
              $this->populateDisabledPluginsFromDb();
              $this->writeDisabled();
          }
      }
code: protected function loadDisabled()
      {
          $path = $this->metaFile;
  
          if (($configDisabled = Config::get('cms.disablePlugins')) && is_array($configDisabled)) {
              foreach ($configDisabled as $disabled) {
                  $this->disabledPlugins[$disabled] = true;
              }
          }
  
          if (File::exists($path)) {
              $disabled = json_decode(File::get($path), true) ?: [];
              $this->disabledPlugins = array_merge($this->disabledPlugins, $disabled);
          }
          else {
              $this->populateDisabledPluginsFromDb();
              $this->writeDisabled();
          }
      }
code_tokens: protected function loadDisabled ( ) { $ path = $ this -> metaFile ; if ( ( $ configDisabled = Config :: get ( 'cms.disablePlugins' ) ) && is_array ( $ configDisabled ) ) { foreach ( $ configDisabled as $ disabled ) { $ this -> disabledPlugins [ $ disabled ] = true ; } } if ( File :: exists ( $ path ) ) { $ disabled = json_decode ( File :: get ( $ path ) , true ) ? : [ ] ; $ this -> disabledPlugins = array_merge ( $ this -> disabledPlugins , $ disabled ) ; } else { $ this -> populateDisabledPluginsFromDb ( ) ; $ this -> writeDisabled ( ) ; } }
docstring: Loads all disables plugins from the meta file.
docstring_tokens: Loads all disables plugins from the meta file .