original_string: public static function write($config, $value = null)
      {
          if (!is_array($config)) {
              $config = [$config => $value];
          }
  
          foreach ($config as $name => $value) {
              static::$_values = Hash::insert(static::$_values, $name, $value);
          }
  
          if (isset($config['debug'])) {
              if (static::$_hasIniSet === null) {
                  static::$_hasIniSet = function_exists('ini_set');
              }
              if (static::$_hasIniSet) {
                  ini_set('display_errors', $config['debug'] ? '1' : '0');
              }
          }
  
          return true;
      }
code: public static function write($config, $value = null)
      {
          if (!is_array($config)) {
              $config = [$config => $value];
          }
  
          foreach ($config as $name => $value) {
              static::$_values = Hash::insert(static::$_values, $name, $value);
          }
  
          if (isset($config['debug'])) {
              if (static::$_hasIniSet === null) {
                  static::$_hasIniSet = function_exists('ini_set');
              }
              if (static::$_hasIniSet) {
                  ini_set('display_errors', $config['debug'] ? '1' : '0');
              }
          }
  
          return true;
      }
code_tokens: public static function write ( $ config , $ value = null ) { if ( ! is_array ( $ config ) ) { $ config = [ $ config => $ value ] ; } foreach ( $ config as $ name => $ value ) { static :: $ _values = Hash :: insert ( static :: $ _values , $ name , $ value ) ; } if ( isset ( $ config [ 'debug' ] ) ) { if ( static :: $ _hasIniSet === null ) { static :: $ _hasIniSet = function_exists ( 'ini_set' ) ; } if ( static :: $ _hasIniSet ) { ini_set ( 'display_errors' , $ config [ 'debug' ] ? '1' : '0' ) ; } } return true ; }
docstring: Used to store a dynamic variable in Configure.
  
  Usage:
  ```
  Configure::write('One.key1', 'value of the Configure::One[key1]');
  Configure::write(['One.key1' => 'value of the Configure::One[key1]']);
  Configure::write('One', [
  'key1' => 'value of the Configure::One[key1]',
  'key2' => 'value of the Configure::One[key2]'
  ]);
  
  Configure::write([
  'One.key1' => 'value of the Configure::One[key1]',
  'One.key2' => 'value of the Configure::One[key2]'
  ]);
  ```
  
  @param string|array $config The key to write, can be a dot notation value.
  Alternatively can be an array containing key(s) and value(s).
  @param mixed $value Value to set for var
  @return bool True if write was successful
  @link https://book.cakephp.org/3.0/en/development/configuration.html#writing-configuration-data
docstring_tokens: Used to store a dynamic variable in Configure .