original_string: public function display_answers(html_table $table) {
          $answers = $this->get_answers();
          $i = 1;
          foreach ($answers as $answer) {
              $cells = array();
              $cells[] = '<label>' . get_string('jump', 'lesson') . ' ' . $i . '</label>:';
              $cells[] = $this->get_jump_name($answer->jumpto);
              $table->data[] = new html_table_row($cells);
              if ($i === 1){
                  $table->data[count($table->data)-1]->cells[0]->style = 'width:20%;';
              }
              $i++;
          }
          return $table;
      }
code: public function display_answers(html_table $table) {
          $answers = $this->get_answers();
          $i = 1;
          foreach ($answers as $answer) {
              $cells = array();
              $cells[] = '<label>' . get_string('jump', 'lesson') . ' ' . $i . '</label>:';
              $cells[] = $this->get_jump_name($answer->jumpto);
              $table->data[] = new html_table_row($cells);
              if ($i === 1){
                  $table->data[count($table->data)-1]->cells[0]->style = 'width:20%;';
              }
              $i++;
          }
          return $table;
      }
code_tokens: public function display_answers ( html_table $ table ) { $ answers = $ this -> get_answers ( ) ; $ i = 1 ; foreach ( $ answers as $ answer ) { $ cells = array ( ) ; $ cells [ ] = '<label>' . get_string ( 'jump' , 'lesson' ) . ' ' . $ i . '</label>:' ; $ cells [ ] = $ this -> get_jump_name ( $ answer -> jumpto ) ; $ table -> data [ ] = new html_table_row ( $ cells ) ; if ( $ i === 1 ) { $ table -> data [ count ( $ table -> data ) - 1 ] -> cells [ 0 ] -> style = 'width:20%;' ; } $ i ++ ; } return $ table ; }
docstring: Updates a table with the answers for this page
  @param html_table $table
  @return html_table
docstring_tokens: Updates a table with the answers for this page