original_string: public function getConfig($name)
      {
          $this->requireConfig();
  
          if (!property_exists($this->cfg, $name)) {
              throw new \RuntimeException(sprintf('Failed to find $CFG->%s in Moodle config file', $name));
          }
  
          return $this->cfg->$name;
      }
code: public function getConfig($name)
      {
          $this->requireConfig();
  
          if (!property_exists($this->cfg, $name)) {
              throw new \RuntimeException(sprintf('Failed to find $CFG->%s in Moodle config file', $name));
          }
  
          return $this->cfg->$name;
      }
code_tokens: public function getConfig ( $ name ) { $ this -> requireConfig ( ) ; if ( ! property_exists ( $ this -> cfg , $ name ) ) { throw new \ RuntimeException ( sprintf ( 'Failed to find $CFG->%s in Moodle config file' , $ name ) ) ; } return $ this -> cfg -> $ name ; }
docstring: Get a Moodle config value.
  
  @param string $name the config name
  
  @return string
docstring_tokens: Get a Moodle config value .