original_string: public function apply_default_settings() {
          global $CFG;
  
          foreach ($this->forceable as $property) {
  
              if (isset($CFG->{"grade_$property"})) {
  
                  if ($CFG->{"grade_$property"} == -1) {
                      continue; //temporary bc before version bump
                  }
                  $this->$property = $CFG->{"grade_$property"};
              }
          }
      }
code: public function apply_default_settings() {
          global $CFG;
  
          foreach ($this->forceable as $property) {
  
              if (isset($CFG->{"grade_$property"})) {
  
                  if ($CFG->{"grade_$property"} == -1) {
                      continue; //temporary bc before version bump
                  }
                  $this->$property = $CFG->{"grade_$property"};
              }
          }
      }
code_tokens: public function apply_default_settings ( ) { global $ CFG ; foreach ( $ this -> forceable as $ property ) { if ( isset ( $ CFG -> { "grade_$property" } ) ) { if ( $ CFG -> { "grade_$property" } == - 1 ) { continue ; //temporary bc before version bump } $ this -> $ property = $ CFG -> { "grade_$property" } ; } } }
docstring: Applies default settings on this category
  
  @return bool True if anything changed
docstring_tokens: Applies default settings on this category