original_string: public function get($name, $default = null)
      {
          try {
              if ($setting = $this->model->where('name', '=', $name)->first()) {
                  return $this->castSetting($name, $setting->value);
              }
  
              return $default;
          } catch (Exception $e) {
              throw new ReadException($e);
          }
      }
code: public function get($name, $default = null)
      {
          try {
              if ($setting = $this->model->where('name', '=', $name)->first()) {
                  return $this->castSetting($name, $setting->value);
              }
  
              return $default;
          } catch (Exception $e) {
              throw new ReadException($e);
          }
      }
code_tokens: public function get ( $ name , $ default = null ) { try { if ( $ setting = $ this -> model -> where ( 'name' , '=' , $ name ) -> first ( ) ) { return $ this -> castSetting ( $ name , $ setting -> value ) ; } return $ default ; } catch ( Exception $ e ) { throw new ReadException ( $ e ) ; } }
docstring: Get a setting, or the default value.
  
  @param string $name
  @param mixed  $default
  
  @throws \CachetHQ\Cachet\Settings\ReadException
  
  @return mixed
docstring_tokens: Get a setting or the default value .