MCPcopy Create free account
hub / github.com/Rello/analytics / matchesInThreshold

Method matchesInThreshold

lib/Service/ThresholdService.php:392–396  ·  view source on GitHub ↗
(mixed $value, string $target)

Source from the content-addressed store, hash-verified

390 }
391
392 private function matchesInThreshold(mixed $value, string $target): bool {
393 preg_match_all("/'(?:[^'\\\\]|\\\\.)*'|[^,;]+/", $target, $matches);
394 $values = array_map(static fn (string $item): string => trim($item, " '"), $matches[0]);
395 return in_array((string)$value, $values, true);
396 }
397}

Callers 1

matchesThresholdMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected