original_string: public function write_files($files) {
          if (empty($files)) {
              return '';
          }
          $string = '';
          foreach ($files as $file) {
              if ($file->is_directory()) {
                  continue;
              }
              $string .= '<file name="' . $file->get_filename() . '" path="' . $file->get_filepath() . '" encoding="base64">';
              $string .= base64_encode($file->get_content());
              $string .= "</file>\n";
          }
          return $string;
      }
code: public function write_files($files) {
          if (empty($files)) {
              return '';
          }
          $string = '';
          foreach ($files as $file) {
              if ($file->is_directory()) {
                  continue;
              }
              $string .= '<file name="' . $file->get_filename() . '" path="' . $file->get_filepath() . '" encoding="base64">';
              $string .= base64_encode($file->get_content());
              $string .= "</file>\n";
          }
          return $string;
      }
code_tokens: public function write_files ( $ files ) { if ( empty ( $ files ) ) { return '' ; } $ string = '' ; foreach ( $ files as $ file ) { if ( $ file -> is_directory ( ) ) { continue ; } $ string .= '<file name="' . $ file -> get_filename ( ) . '" path="' . $ file -> get_filepath ( ) . '" encoding="base64">' ; $ string .= base64_encode ( $ file -> get_content ( ) ) ; $ string .= "</file>\n" ; } return $ string ; }
docstring: Generte the XML to represent some files.
  @param array of store array of stored_file objects.
  @return string $string the XML.
docstring_tokens: Generte the XML to represent some files .