original_string: private function _write($file, $data, $config)
      {
          $result = file_put_contents($file, $data);
          if ($result !== false) {
              // set permissions of the new file (no execute)
              $chmod = $config->get('Cache.SerializerPermissions');
              if ($chmod !== null) {
                  chmod($file, $chmod & 0666);
              }
          }
          return $result;
      }
code: private function _write($file, $data, $config)
      {
          $result = file_put_contents($file, $data);
          if ($result !== false) {
              // set permissions of the new file (no execute)
              $chmod = $config->get('Cache.SerializerPermissions');
              if ($chmod !== null) {
                  chmod($file, $chmod & 0666);
              }
          }
          return $result;
      }
code_tokens: private function _write ( $ file , $ data , $ config ) { $ result = file_put_contents ( $ file , $ data ) ; if ( $ result !== false ) { // set permissions of the new file (no execute) $ chmod = $ config -> get ( 'Cache.SerializerPermissions' ) ; if ( $ chmod !== null ) { chmod ( $ file , $ chmod & 0666 ) ; } } return $ result ; }
docstring: Convenience wrapper function for file_put_contents
  @param string $file File name to write to
  @param string $data Data to write into file
  @param HTMLPurifier_Config $config
  @return int|bool Number of bytes written if success, or false if failure.
docstring_tokens: Convenience wrapper function for file_put_contents