original_string: public function get($name, $default = null)
      {
          if (! str_contains($name, '::')) {
              throw new InvalidArgumentException("Setting key must be in the format '[module]::[setting]', '$name' given.");
          }
  
          $defaultFromConfig = $this->getDefaultFromConfigFor($name);
  
          if ($this->setting->has($name)) {
              return $this->setting->get($name);
          }
  
          return is_null($default) ? $defaultFromConfig : $default;
      }
code: public function get($name, $default = null)
      {
          if (! str_contains($name, '::')) {
              throw new InvalidArgumentException("Setting key must be in the format '[module]::[setting]', '$name' given.");
          }
  
          $defaultFromConfig = $this->getDefaultFromConfigFor($name);
  
          if ($this->setting->has($name)) {
              return $this->setting->get($name);
          }
  
          return is_null($default) ? $defaultFromConfig : $default;
      }
code_tokens: public function get ( $ name , $ default = null ) { if ( ! str_contains ( $ name , '::' ) ) { throw new InvalidArgumentException ( "Setting key must be in the format '[module]::[setting]', '$name' given." ) ; } $ defaultFromConfig = $ this -> getDefaultFromConfigFor ( $ name ) ; if ( $ this -> setting -> has ( $ name ) ) { return $ this -> setting -> get ( $ name ) ; } return is_null ( $ default ) ? $ defaultFromConfig : $ default ; }
docstring: Getting the setting.
  
  @param string $name
  @param string $locale
  @param string $default
  
  @return mixed
docstring_tokens: Getting the setting .