original_string: public function is_feedback_modified(stdClass $grade, stdClass $data) {
          $commenttext = '';
          if ($grade) {
              $feedbackcomments = $this->get_feedback_comments($grade->id);
              if ($feedbackcomments) {
                  $commenttext = $feedbackcomments->commenttext;
              }
          }
  
          $formtext = $data->assignfeedbackcomments_editor['text'];
  
          // Need to convert the form text to use @@PLUGINFILE@@ and format it so we can compare it with what is stored in the DB.
          if (isset($data->assignfeedbackcomments_editor['itemid'])) {
              $formtext = file_rewrite_urls_to_pluginfile($formtext, $data->assignfeedbackcomments_editor['itemid']);
              $formtext = format_text($formtext, FORMAT_HTML);
          }
  
          if ($commenttext == $formtext) {
              return false;
          } else {
              return true;
          }
      }
code: public function is_feedback_modified(stdClass $grade, stdClass $data) {
          $commenttext = '';
          if ($grade) {
              $feedbackcomments = $this->get_feedback_comments($grade->id);
              if ($feedbackcomments) {
                  $commenttext = $feedbackcomments->commenttext;
              }
          }
  
          $formtext = $data->assignfeedbackcomments_editor['text'];
  
          // Need to convert the form text to use @@PLUGINFILE@@ and format it so we can compare it with what is stored in the DB.
          if (isset($data->assignfeedbackcomments_editor['itemid'])) {
              $formtext = file_rewrite_urls_to_pluginfile($formtext, $data->assignfeedbackcomments_editor['itemid']);
              $formtext = format_text($formtext, FORMAT_HTML);
          }
  
          if ($commenttext == $formtext) {
              return false;
          } else {
              return true;
          }
      }
code_tokens: public function is_feedback_modified ( stdClass $ grade , stdClass $ data ) { $ commenttext = '' ; if ( $ grade ) { $ feedbackcomments = $ this -> get_feedback_comments ( $ grade -> id ) ; if ( $ feedbackcomments ) { $ commenttext = $ feedbackcomments -> commenttext ; } } $ formtext = $ data -> assignfeedbackcomments_editor [ 'text' ] ; // Need to convert the form text to use @@PLUGINFILE@@ and format it so we can compare it with what is stored in the DB. if ( isset ( $ data -> assignfeedbackcomments_editor [ 'itemid' ] ) ) { $ formtext = file_rewrite_urls_to_pluginfile ( $ formtext , $ data -> assignfeedbackcomments_editor [ 'itemid' ] ) ; $ formtext = format_text ( $ formtext , FORMAT_HTML ) ; } if ( $ commenttext == $ formtext ) { return false ; } else { return true ; } }
docstring: Has the comment feedback been modified?
  
  @param stdClass $grade The grade object.
  @param stdClass $data Data from the form submission.
  @return boolean True if the comment feedback has been modified, else false.
docstring_tokens: Has the comment feedback been modified?