original_string: public function writeConfig($values = [], $overwrite = false)
      {
          if (!$overwrite) {
              $values = $values + (array) $this->getConfig();
          }
  
          $path = $this->getPath().'/theme.yaml';
          if (!File::exists($path)) {
              throw new ApplicationException('Path does not exist: '.$path);
          }
  
          $contents = Yaml::render($values);
          File::put($path, $contents);
          $this->configCache = $values;
      }
code: public function writeConfig($values = [], $overwrite = false)
      {
          if (!$overwrite) {
              $values = $values + (array) $this->getConfig();
          }
  
          $path = $this->getPath().'/theme.yaml';
          if (!File::exists($path)) {
              throw new ApplicationException('Path does not exist: '.$path);
          }
  
          $contents = Yaml::render($values);
          File::put($path, $contents);
          $this->configCache = $values;
      }
code_tokens: public function writeConfig ( $ values = [ ] , $ overwrite = false ) { if ( ! $ overwrite ) { $ values = $ values + ( array ) $ this -> getConfig ( ) ; } $ path = $ this -> getPath ( ) . '/theme.yaml' ; if ( ! File :: exists ( $ path ) ) { throw new ApplicationException ( 'Path does not exist: ' . $ path ) ; } $ contents = Yaml :: render ( $ values ) ; File :: put ( $ path , $ contents ) ; $ this -> configCache = $ values ; }
docstring: Writes to the theme.yaml file with the supplied array values.
  @param array $values Data to write
  @param array $overwrite If true, undefined values are removed.
  @return void
docstring_tokens: Writes to the theme . yaml file with the supplied array values .