original_string: public function zipResourceFile($file, $resource)
      {
          if (!$this->zip->addFromString($file, json_encode($resource, JSON_UNESCAPED_SLASHES))) {
              throw new InternalServerErrorException("Failed to add $file to the Zip Archive.");
          }
      }
code: public function zipResourceFile($file, $resource)
      {
          if (!$this->zip->addFromString($file, json_encode($resource, JSON_UNESCAPED_SLASHES))) {
              throw new InternalServerErrorException("Failed to add $file to the Zip Archive.");
          }
      }
code_tokens: public function zipResourceFile ( $ file , $ resource ) { if ( ! $ this -> zip -> addFromString ( $ file , json_encode ( $ resource , JSON_UNESCAPED_SLASHES ) ) ) { throw new InternalServerErrorException ( "Failed to add $file to the Zip Archive." ) ; } }
docstring: Adds resource file to ZipArchive.
  
  @param $file
  @param $resource
  
  @throws \DreamFactory\Core\Exceptions\InternalServerErrorException
docstring_tokens: Adds resource file to ZipArchive .