MCPcopy Index your code
hub / github.com/php/frankenphp / needReplacement

Function needReplacement

caddy/module.go:195–197  ·  view source on GitHub ↗

needReplacement checks if a string contains placeholders.

(s string)

Source from the content-addressed store, hash-verified

193
194// needReplacement checks if a string contains placeholders.
195func needReplacement(s string) bool {
196 return strings.ContainsAny(s, "{}")
197}
198
199// ServeHTTP implements caddyhttp.MiddlewareHandler.
200func (f *FrankenPHPModule) ServeHTTP(w http.ResponseWriter, r *http.Request, _ caddyhttp.Handler) error {

Callers 1

ProvisionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected