original_string: public function getSetting($name, $default = '')
      {
  
          if (array_key_exists($name, $this->settings)) {
              $value = $this->settings[$name];
          } else {
              $value = $default;
          }
  
          return $value;
  
      }
code: public function getSetting($name, $default = '')
      {
  
          if (array_key_exists($name, $this->settings)) {
              $value = $this->settings[$name];
          } else {
              $value = $default;
          }
  
          return $value;
  
      }
code_tokens: public function getSetting ( $ name , $ default = '' ) { if ( array_key_exists ( $ name , $ this -> settings ) ) { $ value = $ this -> settings [ $ name ] ; } else { $ value = $ default ; } return $ value ; }
docstring: Get a setting value.
  
  @param string $name    Name of setting
  @param string $default Value to return if the setting does not exist (optional, default is an empty string)
  
  @return string Setting value
docstring_tokens: Get a setting value .