original_string: public function set($value) {
          $finalgrade = false;
          $trimmed = trim($value);
          if (empty($trimmed)) {
              $feedback = null;
          } else {
              $feedback = $value;
          }
  
          $this->grade->grade_item->update_final_grade(
              $this->grade->userid, $finalgrade, 'singleview',
              $feedback, FORMAT_MOODLE
          );
      }
code: public function set($value) {
          $finalgrade = false;
          $trimmed = trim($value);
          if (empty($trimmed)) {
              $feedback = null;
          } else {
              $feedback = $value;
          }
  
          $this->grade->grade_item->update_final_grade(
              $this->grade->userid, $finalgrade, 'singleview',
              $feedback, FORMAT_MOODLE
          );
      }
code_tokens: public function set ( $ value ) { $ finalgrade = false ; $ trimmed = trim ( $ value ) ; if ( empty ( $ trimmed ) ) { $ feedback = null ; } else { $ feedback = $ value ; } $ this -> grade -> grade_item -> update_final_grade ( $ this -> grade -> userid , $ finalgrade , 'singleview' , $ feedback , FORMAT_MOODLE ) ; }
docstring: Update the value for this input.
  
  @param string $value The new feedback value.
  @return string Any error message
docstring_tokens: Update the value for this input .