original_string: protected function export_files_list($filearea) {
  
          $output = '';
          $files = [];
  
          foreach ($this->multifiles as $file) {
              if ($file->is_directory()) {
                  continue;
              }
              if ($file->get_filearea() !== $filearea) {
                  continue;
              }
              if ($file->is_valid_image()) {
                  // Not optimal but looks better than original images.
                  $files[] = html_writer::tag('li', $this->exporter->get('format')->file_output($file,
                      ['attributes' => ['style' => 'max-height:24px; max-width:24px']]).' '.s($file->get_filename()));
              } else {
                  $files[] = html_writer::tag('li', $this->exporter->get('format')->file_output($file));
              }
          }
  
          if ($files) {
              $output .= html_writer::tag('ul', implode('', $files));
          }
  
          return $output;
      }
code: protected function export_files_list($filearea) {
  
          $output = '';
          $files = [];
  
          foreach ($this->multifiles as $file) {
              if ($file->is_directory()) {
                  continue;
              }
              if ($file->get_filearea() !== $filearea) {
                  continue;
              }
              if ($file->is_valid_image()) {
                  // Not optimal but looks better than original images.
                  $files[] = html_writer::tag('li', $this->exporter->get('format')->file_output($file,
                      ['attributes' => ['style' => 'max-height:24px; max-width:24px']]).' '.s($file->get_filename()));
              } else {
                  $files[] = html_writer::tag('li', $this->exporter->get('format')->file_output($file));
              }
          }
  
          if ($files) {
              $output .= html_writer::tag('ul', implode('', $files));
          }
  
          return $output;
      }
code_tokens: protected function export_files_list ( $ filearea ) { $ output = '' ; $ files = [ ] ; foreach ( $ this -> multifiles as $ file ) { if ( $ file -> is_directory ( ) ) { continue ; } if ( $ file -> get_filearea ( ) !== $ filearea ) { continue ; } if ( $ file -> is_valid_image ( ) ) { // Not optimal but looks better than original images. $ files [ ] = html_writer :: tag ( 'li' , $ this -> exporter -> get ( 'format' ) -> file_output ( $ file , [ 'attributes' => [ 'style' => 'max-height:24px; max-width:24px' ] ] ) . ' ' . s ( $ file -> get_filename ( ) ) ) ; } else { $ files [ ] = html_writer :: tag ( 'li' , $ this -> exporter -> get ( 'format' ) -> file_output ( $ file ) ) ; } } if ( $ files ) { $ output .= html_writer :: tag ( 'ul' , implode ( '' , $ files ) ) ; } return $ output ; }
docstring: Export the files in the given file area in a list.
  
  @param string $filearea
  @return string HTML
docstring_tokens: Export the files in the given file area in a list .