original_string: public static function update_category(stdClass $record) {
          $category = new category($record->id);
          $category->from_record($record);
  
          $result = $category->update();
  
          return $category;
      }
code: public static function update_category(stdClass $record) {
          $category = new category($record->id);
          $category->from_record($record);
  
          $result = $category->update();
  
          return $category;
      }
code_tokens: public static function update_category ( stdClass $ record ) { $ category = new category ( $ record -> id ) ; $ category -> from_record ( $ record ) ; $ result = $ category -> update ( ) ; return $ category ; }
docstring: Updates an existing data category.
  
  @param stdClass $record
  @return \tool_dataprivacy\category.
docstring_tokens: Updates an existing data category .