original_string: public function config_read($name) {
          global $CFG;
          if (!empty($this->plugin)) {
              $value = get_config($this->plugin, $name);
              return $value === false ? NULL : $value;
  
          } else {
              if (isset($CFG->$name)) {
                  return $CFG->$name;
              } else {
                  return NULL;
              }
          }
      }
code: public function config_read($name) {
          global $CFG;
          if (!empty($this->plugin)) {
              $value = get_config($this->plugin, $name);
              return $value === false ? NULL : $value;
  
          } else {
              if (isset($CFG->$name)) {
                  return $CFG->$name;
              } else {
                  return NULL;
              }
          }
      }
code_tokens: public function config_read ( $ name ) { global $ CFG ; if ( ! empty ( $ this -> plugin ) ) { $ value = get_config ( $ this -> plugin , $ name ) ; return $ value === false ? NULL : $ value ; } else { if ( isset ( $ CFG -> $ name ) ) { return $ CFG -> $ name ; } else { return NULL ; } } }
docstring: Returns the config if possible
  
  @return mixed returns config if successful else null
docstring_tokens: Returns the config if possible