original_string: public function reload($defaultSettingsFiles = array(), $userSettingsFile = null)
      {
          if (!empty($defaultSettingsFiles)
              || !empty($userSettingsFile)
          ) {
              $this->resetSettingsChain($defaultSettingsFiles, $userSettingsFile);
          }
  
          $reader = new IniReader();
          foreach ($this->settingsChain as $file => $ignore) {
              if (is_readable($file)) {
                  try {
                      $contents = $reader->readFile($file);
                      $this->settingsChain[$file] = $this->decodeValues($contents);
                  } catch (IniReadingException $ex) {
                      throw new IniReadingException('Unable to read INI file {' . $file . '}: ' . $ex->getMessage() . "\n Your host may have disabled parse_ini_file().");
                  }
  
                  $this->decodeValues($this->settingsChain[$file]);
              }
          }
  
          $merged = $this->mergeFileSettings();
          // remove reference to $this->settingsChain... otherwise dump() or compareElements() will never notice a difference
          // on PHP 7+ as they would be always equal
          $this->mergedSettings = $this->copy($merged);
      }
code: public function reload($defaultSettingsFiles = array(), $userSettingsFile = null)
      {
          if (!empty($defaultSettingsFiles)
              || !empty($userSettingsFile)
          ) {
              $this->resetSettingsChain($defaultSettingsFiles, $userSettingsFile);
          }
  
          $reader = new IniReader();
          foreach ($this->settingsChain as $file => $ignore) {
              if (is_readable($file)) {
                  try {
                      $contents = $reader->readFile($file);
                      $this->settingsChain[$file] = $this->decodeValues($contents);
                  } catch (IniReadingException $ex) {
                      throw new IniReadingException('Unable to read INI file {' . $file . '}: ' . $ex->getMessage() . "\n Your host may have disabled parse_ini_file().");
                  }
  
                  $this->decodeValues($this->settingsChain[$file]);
              }
          }
  
          $merged = $this->mergeFileSettings();
          // remove reference to $this->settingsChain... otherwise dump() or compareElements() will never notice a difference
          // on PHP 7+ as they would be always equal
          $this->mergedSettings = $this->copy($merged);
      }
code_tokens: public function reload ( $ defaultSettingsFiles = array ( ) , $ userSettingsFile = null ) { if ( ! empty ( $ defaultSettingsFiles ) || ! empty ( $ userSettingsFile ) ) { $ this -> resetSettingsChain ( $ defaultSettingsFiles , $ userSettingsFile ) ; } $ reader = new IniReader ( ) ; foreach ( $ this -> settingsChain as $ file => $ ignore ) { if ( is_readable ( $ file ) ) { try { $ contents = $ reader -> readFile ( $ file ) ; $ this -> settingsChain [ $ file ] = $ this -> decodeValues ( $ contents ) ; } catch ( IniReadingException $ ex ) { throw new IniReadingException ( 'Unable to read INI file {' . $ file . '}: ' . $ ex -> getMessage ( ) . "\n Your host may have disabled parse_ini_file()." ) ; } $ this -> decodeValues ( $ this -> settingsChain [ $ file ] ) ; } } $ merged = $ this -> mergeFileSettings ( ) ; // remove reference to $this->settingsChain... otherwise dump() or compareElements() will never notice a difference // on PHP 7+ as they would be always equal $ this -> mergedSettings = $ this -> copy ( $ merged ) ; }
docstring: Reloads settings from disk.
docstring_tokens: Reloads settings from disk .