original_string: public function link_files($entry, $files) {
          foreach ($files as $file) {
              $fileentry = new portfolio_format_leap2a_file($file->get_filename(), $file);
              $this->add_entry($fileentry);
              $entry->add_link($fileentry, 'related');
              $fileentry->add_link($entry, 'related');
          }
      }
code: public function link_files($entry, $files) {
          foreach ($files as $file) {
              $fileentry = new portfolio_format_leap2a_file($file->get_filename(), $file);
              $this->add_entry($fileentry);
              $entry->add_link($fileentry, 'related');
              $fileentry->add_link($entry, 'related');
          }
      }
code_tokens: public function link_files ( $ entry , $ files ) { foreach ( $ files as $ file ) { $ fileentry = new portfolio_format_leap2a_file ( $ file -> get_filename ( ) , $ file ) ; $ this -> add_entry ( $ fileentry ) ; $ entry -> add_link ( $ fileentry , 'related' ) ; $ fileentry -> add_link ( $ entry , 'related' ) ; } }
docstring: Helper function to link some stored_files into the feed and link them to a particular entry
  
  @param portfolio_format_leap2a_entry $entry feed object
  @param array $files array of stored_files to link
docstring_tokens: Helper function to link some stored_files into the feed and link them to a particular entry