original_string: public function write_files($files, $indent) {
          if (empty($files)) {
              return '';
          }
          $string = '';
          foreach ($files as $file) {
              if ($file->is_directory()) {
                  continue;
              }
              $string .= str_repeat('  ', $indent);
              $string .= '<file name="' . $file->get_filename() . '" encoding="base64">';
              $string .= base64_encode($file->get_content());
              $string .= "</file>\n";
          }
          return $string;
      }
code: public function write_files($files, $indent) {
          if (empty($files)) {
              return '';
          }
          $string = '';
          foreach ($files as $file) {
              if ($file->is_directory()) {
                  continue;
              }
              $string .= str_repeat('  ', $indent);
              $string .= '<file name="' . $file->get_filename() . '" encoding="base64">';
              $string .= base64_encode($file->get_content());
              $string .= "</file>\n";
          }
          return $string;
      }
code_tokens: public function write_files ( $ files , $ indent ) { if ( empty ( $ files ) ) { return '' ; } $ string = '' ; foreach ( $ files as $ file ) { if ( $ file -> is_directory ( ) ) { continue ; } $ string .= str_repeat ( '  ' , $ indent ) ; $ string .= '<file name="' . $ file -> get_filename ( ) . '" encoding="base64">' ; $ string .= base64_encode ( $ file -> get_content ( ) ) ; $ string .= "</file>\n" ; } return $ string ; }
docstring: Convert files into text output in the given format.
  This method is copied from qformat_default as a quick fix, as the method there is
  protected.
  @param array $files
  @param int $indent Number of spaces to indent
  @return string $string
docstring_tokens: Convert files into text output in the given format . This method is copied from qformat_default as a quick fix as the method there is protected .