original_string: public static function add_comment($commenttext, $width, $colour) {
          global $DB, $USER;
  
          $comment = new \stdClass();
          $comment->userid = $USER->id;
          $comment->rawtext = $commenttext;
          $comment->width = $width;
          $comment->colour = $colour;
  
          $comment->id = $DB->insert_record('assignfeedback_editpdf_quick', $comment);
          return $comment;
      }
code: public static function add_comment($commenttext, $width, $colour) {
          global $DB, $USER;
  
          $comment = new \stdClass();
          $comment->userid = $USER->id;
          $comment->rawtext = $commenttext;
          $comment->width = $width;
          $comment->colour = $colour;
  
          $comment->id = $DB->insert_record('assignfeedback_editpdf_quick', $comment);
          return $comment;
      }
code_tokens: public static function add_comment ( $ commenttext , $ width , $ colour ) { global $ DB , $ USER ; $ comment = new \ stdClass ( ) ; $ comment -> userid = $ USER -> id ; $ comment -> rawtext = $ commenttext ; $ comment -> width = $ width ; $ comment -> colour = $ colour ; $ comment -> id = $ DB -> insert_record ( 'assignfeedback_editpdf_quick' , $ comment ) ; return $ comment ; }
docstring: Add a comment to the quick list.
  @param string $commenttext
  @param int $width
  @param string $colour
  @return stdClass - the comment record (with new id set)
docstring_tokens: Add a comment to the quick list .