original_string: protected function resolve_excludes($variable, $default = null) {
          $setting = $default;
          if (is_array($this->{$variable}) or $this->{$variable} === true) {
              $setting = $this->{$variable};
          } else {
              foreach ($this->parent_configs as $parent_config) { // the immediate parent first, base last
                  if (!isset($parent_config->{$variable})) {
                      continue;
                  }
                  if (is_array($parent_config->{$variable}) or $parent_config->{$variable} === true) {
                      $setting = $parent_config->{$variable};
                      break;
                  }
              }
          }
          return $setting;
      }
code: protected function resolve_excludes($variable, $default = null) {
          $setting = $default;
          if (is_array($this->{$variable}) or $this->{$variable} === true) {
              $setting = $this->{$variable};
          } else {
              foreach ($this->parent_configs as $parent_config) { // the immediate parent first, base last
                  if (!isset($parent_config->{$variable})) {
                      continue;
                  }
                  if (is_array($parent_config->{$variable}) or $parent_config->{$variable} === true) {
                      $setting = $parent_config->{$variable};
                      break;
                  }
              }
          }
          return $setting;
      }
code_tokens: protected function resolve_excludes ( $ variable , $ default = null ) { $ setting = $ default ; if ( is_array ( $ this -> { $ variable } ) or $ this -> { $ variable } === true ) { $ setting = $ this -> { $ variable } ; } else { foreach ( $ this -> parent_configs as $ parent_config ) { // the immediate parent first, base last if ( ! isset ( $ parent_config -> { $ variable } ) ) { continue ; } if ( is_array ( $ parent_config -> { $ variable } ) or $ parent_config -> { $ variable } === true ) { $ setting = $ parent_config -> { $ variable } ; break ; } } } return $ setting ; }
docstring: Resolves an exclude setting to the themes setting is applicable or the
  setting of its closest parent.
  
  @param string $variable The name of the setting the exclude setting to resolve
  @param string $default
  @return mixed
docstring_tokens: Resolves an exclude setting to the themes setting is applicable or the setting of its closest parent .