original_string: public static function update_course_competency_settings($courseid, $settings) {
          $params = self::validate_parameters(self::update_course_competency_settings_parameters(), array(
              'courseid' => $courseid,
              'settings' => $settings
          ));
  
          $context = context_course::instance($params['courseid']);
          self::validate_context($context);
          $result = api::update_course_competency_settings($params['courseid'], $params['settings']);
  
          return $result;
      }
code: public static function update_course_competency_settings($courseid, $settings) {
          $params = self::validate_parameters(self::update_course_competency_settings_parameters(), array(
              'courseid' => $courseid,
              'settings' => $settings
          ));
  
          $context = context_course::instance($params['courseid']);
          self::validate_context($context);
          $result = api::update_course_competency_settings($params['courseid'], $params['settings']);
  
          return $result;
      }
code_tokens: public static function update_course_competency_settings ( $ courseid , $ settings ) { $ params = self :: validate_parameters ( self :: update_course_competency_settings_parameters ( ) , array ( 'courseid' => $ courseid , 'settings' => $ settings ) ) ; $ context = context_course :: instance ( $ params [ 'courseid' ] ) ; self :: validate_context ( $ context ) ; $ result = api :: update_course_competency_settings ( $ params [ 'courseid' ] , $ params [ 'settings' ] ) ; return $ result ; }
docstring: Update the course competency settings
  
  @param int $courseid the course id
  @param stdClass $settings The list of settings (currently only pushratingstouserplans).
  @throws moodle_exception
docstring_tokens: Update the course competency settings