original_string: public function getResourceWildcard($value)
      {
          if (isset($this->parameters[$value])) {
              $value = $this->parameters[$value];
          } elseif (isset(static::$parameterMap[$value])) {
              $value = static::$parameterMap[$value];
          } elseif ($this->parameters === 'singular' || static::$singularParameters) {
              $value = Str::singular($value);
          }
  
          return str_replace('-', '_', $value);
      }
code: public function getResourceWildcard($value)
      {
          if (isset($this->parameters[$value])) {
              $value = $this->parameters[$value];
          } elseif (isset(static::$parameterMap[$value])) {
              $value = static::$parameterMap[$value];
          } elseif ($this->parameters === 'singular' || static::$singularParameters) {
              $value = Str::singular($value);
          }
  
          return str_replace('-', '_', $value);
      }
code_tokens: public function getResourceWildcard ( $ value ) { if ( isset ( $ this -> parameters [ $ value ] ) ) { $ value = $ this -> parameters [ $ value ] ; } elseif ( isset ( static :: $ parameterMap [ $ value ] ) ) { $ value = static :: $ parameterMap [ $ value ] ; } elseif ( $ this -> parameters === 'singular' || static :: $ singularParameters ) { $ value = Str :: singular ( $ value ) ; } return str_replace ( '-' , '_' , $ value ) ; }
docstring: Format a resource parameter for usage.
  
  @param  string  $value
  @return string
docstring_tokens: Format a resource parameter for usage .