Clean up events

This commit is contained in:
James Cole
2026-02-06 15:47:34 +01:00
parent 1f7775032b
commit 54df0d44f7
5 changed files with 34 additions and 92 deletions

View File

@@ -100,10 +100,7 @@ class SearchRuleEngine implements RuleEngineInterface
foreach ($this->rules as $rule) { // @phpstan-ignore-line
$result = $this->fireRule($rule);
if ($result && true === $rule->stop_processing) {
Log::debug(sprintf(
'Rule #%d has triggered and executed, but calls to stop processing. Since not in the context of a group, do not stop.',
$rule->id
));
Log::debug(sprintf('Rule #%d has triggered and executed, but calls to stop processing. Since not in the context of a group, do not stop.', $rule->id));
}
if (false === $result && true === $rule->stop_processing) {
Log::debug(sprintf('Rule #%d has triggered and changed nothing, but calls to stop processing. Do not stop.', $rule->id));