original_string: public function save()
      {
          $filepath = $this->getFilepath();
          $this->validateConfig($this->rules, $this->configData);
          $fileSystem = $this->createNew(FileSystem::class);
          $fileSystem->filePutContents($filepath, json_encode($this->configData, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
      }
code: public function save()
      {
          $filepath = $this->getFilepath();
          $this->validateConfig($this->rules, $this->configData);
          $fileSystem = $this->createNew(FileSystem::class);
          $fileSystem->filePutContents($filepath, json_encode($this->configData, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
      }
code_tokens: public function save ( ) { $ filepath = $ this -> getFilepath ( ) ; $ this -> validateConfig ( $ this -> rules , $ this -> configData ) ; $ fileSystem = $ this -> createNew ( FileSystem :: class ) ; $ fileSystem -> filePutContents ( $ filepath , json_encode ( $ this -> configData , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) ) ; }
docstring: Save the config file based on the config data
docstring_tokens: Save the config file based on the config data